Closed Thread Icon

Topic awaiting preservation: broblems with post mail Pages that link to <a href="https://ozoneasylum.com/backlink?for=12956" title="Pages that link to Topic awaiting preservation: broblems with post mail" rel="nofollow" >Topic awaiting preservation: broblems with post mail\

 
Author Thread
sabina
Obsessive-Compulsive (I) Inmate

From: franc paris
Insane since: Oct 2003

posted posted 10-29-2003 11:05

this is an standard mail form
but if a would like to send a some thing else for example :first name: <input name="first" type="text" /><br />
what should i do please helpppp..

<html>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
<html>

<head>
<title></title>
</head>

<body>

<?php


$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "kujtim009@hotmail.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );


?>

</body>

</html>


lklkjlkj

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-29-2003 12:55

well, after you added the firstname within the form,
you'll need to add it to your message, so the line that reads

$message = $_REQUEST['message'];
becomes
$message = "First Name:". $_REQUEST['first']. "\n". $_REQUEST['message'];

now someone explain it ;-).

so long,

Tyberius Prime

« BackwardsOnwards »

Show Forum Drop Down Menu