RE: [PHP] "Easy question"
| From: | Daniel Sandvold | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | RE: [PHP] "Easy question" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21484@lists.php.net to get a copy of this message | ||
> Sure.
>
> <?php
> $var_name_1 = "foo";
> $var_name_2 = "bar";
> ?>
> <html>
> ...
> <a
> href="http://someotherdomain.com/page.php?var_name_1=<?echo
> $var_name_1;?>&var_name_2=<?echo $var_name_2;?>"><img
> src="blah"></a>
> </html>
>
> This is a simple example. If you have a ton of variables to pass over, you
> might want to use a form to POST them as hidden fields.
>
> Jason
i was hoping somthing like this would work :
<HTML>
<BODY>
<form action="test2.php3" AND "test3.php3" method="post">
Name: <input type="text" name="fname"><br>
age : <input type="text" name="age"><br>
<input type="submit"> //this going to test3.php3
<input type="submit"> //this going to test2.php3
</form>
</BODY>
</HTML>
Daniel :)