session var not carrying
| From: | W.D. | Date: | Wed, 21 Feb 2001 17:52:01 +0000 |
| Subject: | session var not carrying | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41018@lists.php.net to get a copy of this message | ||
unable to get these session variable to be used on thanks.php page....
Contact.php
<?php session_start();
?><html><head></head><body>
<form method="POST" action="/thanks.php">
First Name: <input type=TEXT name="FirstName" size=15><p>
Last Name: <input type=TEXT name="LastName" size=25><p>
E-mail Address: <input type=TEXT name="Email" size=25><p>
<textarea name="Info" rows="5" cols="40" wrap=SOFT>Ask a
Question</textarea><p>
<input type=SUBMIT> <input type=RESET>
</font>
</form>
<?php
$FirstName = "FirstName";
$LastName = "LastName";
$Email = "Email";
$Info = "Info";
session_register("FirstName");
session_register("LastName");
session_register("Email");
session_register("Info");
?>
.............Thanks.php.....
$session_start();]
$from = $FirstName . $Lastname;
<?php
mail("addy@domain.com", $Email, $Info, $from);
?>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com