RE: [PHP] Transfer variable to next web-page
Richard already answered the variable part, but I thought I'd point out that you need to use double quotes in your HTML tags... Single quotes are incorrect... text for button "); ?> Or... text for button "); ?> Or... Better yet, why not just: text for button See the PHP manual for escaping HTML and string literals if you're confused by any of this.. http://www.php.net/manual/en/language.basic-syntax.php#language.basic-sy ntax.phpmode http://www.php.net/manual/en/language.types.string.php -Original Message- From: Olav Drageset [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Transfer variable to next web-page I just started.. How do you transfer a variable from one web-page to another I try to use a form like this: text for button "); ?> and catch it injoin2.phpby: $phpVariableName=htmlVariableName; echo"$phpVariableName"; This do not work. Can anyone tel me what should be done Neither books, php-manual nor HTML-specification does tel me. Olav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Transfer variable to next web-page
Use $phpVariableName = $htmlVariableName; Remember to use the $ in front of the variable that you toss from the HTML form. At 10:00 AM 11/17/2001, Olav Drageset wrote: >I just started.. > >How do you transfer a variable from one web-page to another >I try to use a form like this: >echo(" > >text for button > > > >"); >?> > >and catch it injoin2.phpby: > >$phpVariableName=htmlVariableName; > >echo"$phpVariableName"; > >This do not work. >Can anyone tel me what should be done >Neither books, php-manual nor HTML-specification does tel me. > >Olav > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Transfer variable to next web-page
I just started.. How do you transfer a variable from one web-page to another I try to use a form like this: text for button "); ?> and catch it injoin2.phpby: $phpVariableName=htmlVariableName; echo"$phpVariableName"; This do not work. Can anyone tel me what should be done Neither books, php-manual nor HTML-specification does tel me. Olav -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]