Posted by Janwillem Borleffs on 04/26/06 23:32
Shelly wrote:
> I have tried $txt1, $_POST['txt1'] and $_GET['txt1']. What I want
> to generate is a URL of either
>
> http:/www.foo.com?var1=something&var2=somethingelse
> or
> http:/www.foo.com?var1=something&var2=somethingelseagain
>
> depending upon whether or not txt1 is empty and I want to do this
> within the <body></body> section.
>
When you want to react on what the user has entered in the text1 input field
(I assume this is an input field) before the info is submitted to the
server, PHP can't help you and you will have to resort to some client-side
technique, like JavaScript.
JW
[Back to original message]
|