RE: [PHP] Passing form value into another form value?
| From: | Miranda, Joel Louie M | Date: | Mon, 30 Jun 2003 05:23:52 +0000 |
| Subject: | RE: [PHP] Passing form value into another form value? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153367@lists.php.net to get a copy of this message | ||
This is what I have made, im not sure if its correct.
---
<form action"" method="GET" name="">
enter name: <input type="text" name="name"><br>
enter email: <input type="text" name="email">
<?php
$value_name = $_post['name']
$value_email = $_post['email']
?>
<br><br>
<input type="submit" value="Collect Data">
</form>
---
--
Louie
-----Original Message-----
From: Tom Rogers [mailto:trogers@kwikin.com]
Sent: Monday, June 30, 2003 12:43 PM
To: Miranda, Joel Louie M
Cc: 'php-general@lists.php.net'
Subject: Re: [PHP] Passing form value into another form value?
Hi,
Monday, June 30, 2003, 2:41:59 PM, you wrote:
MJLM> Im a beginner and was hoping if you could help me on passing a
MJLM> value into a form and into another form? Im not sure what do you
MJLM> call that sequence but I hope you could get me into a howto
MJLM> section to do that or give me something nice.
MJLM> Thanks
MJLM> --
MJLM> Louie
Take the value from the first form and pass it in the second using a hidden
field..
//from first form
$value = $_post['value']
//second form
<form action......>
<input type="hidden" name="value" value="<?php echo
$value?>"> . . . </form>
--
regards,
Tom