Nikkolus
02-23-2005, 01:15 AM
Rather simple question, I was wondering how I could have the script post the variable information they submitted on the final page.
Here are both of the files.
<form action="process.php" method="post">
Name: <input type="text" name="name" size="20" maxlength="20"><br />
Email: <input type="text" name="email" size="30" maxlength="30"><br />
Subject: <input type="text" name="subject" size="30" maxlength="30"><br />
Information:<textarea name="text" name="text" cols="50" rows="10"></textarea><br />
<input type="submit" name="submit" value="Send">
</form>
---
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = stripslashes($subject);
$text = stripslashes($text);
mail('someone@somewhere.com',$subject,$text,"From: $name <$email>");
header("location:sent.php");
?>
---
How would I get sent.php to publish $name $email etc. on sent.php
Here are both of the files.
<form action="process.php" method="post">
Name: <input type="text" name="name" size="20" maxlength="20"><br />
Email: <input type="text" name="email" size="30" maxlength="30"><br />
Subject: <input type="text" name="subject" size="30" maxlength="30"><br />
Information:<textarea name="text" name="text" cols="50" rows="10"></textarea><br />
<input type="submit" name="submit" value="Send">
</form>
---
<?php
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = stripslashes($subject);
$text = stripslashes($text);
mail('someone@somewhere.com',$subject,$text,"From: $name <$email>");
header("location:sent.php");
?>
---
How would I get sent.php to publish $name $email etc. on sent.php