PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I have a form with a textbox and A submit button. I want the value of the textbox to be stored in a variable so as to pass through to other pages.
I have reached this point:
page 1
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
First of all, the isset function on page1 doesn't really do anything as it will never be set on this page. You need to move that function over to page2 . I tested this on my system and it worked.
I'm not sure why you ended php (?>) and then started again to echo the variable again. I commented that line out but if you want it take out the two forward slashes.