GrayFox12 Posted September 6, 2007 Share Posted September 6, 2007 Hi guys, Small problem i have my form displaying information from my mssql database 1 record. When i click next it goes to php page which from there i want to change the value of a variable in my other php page whihc loads the query for my form then reload my form page with the new record. Any help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/68159-change-variable-in-another-page/ Share on other sites More sharing options...
trq Posted September 6, 2007 Share Posted September 6, 2007 You will need to pass any arguments via the url and retrieve them again via $_GET. Quote Link to comment https://forums.phpfreaks.com/topic/68159-change-variable-in-another-page/#findComment-342667 Share on other sites More sharing options...
GrayFox12 Posted September 7, 2007 Author Share Posted September 7, 2007 How do i do that? $var = $_GET[?] do i put the variable name in there? when i load the form page it loads my php page called selectForm which gets the query n stuff. When i click next i submit the form to a php called handleForm which checks if next has been clicked then i want it to set the variable to 'n' ($op = 'n') then reload my form. when my form loads my selectForm for the query i want to use the variable i changed in handleForm in my selectForm so i can get the right query. If that makes sense. Quote Link to comment https://forums.phpfreaks.com/topic/68159-change-variable-in-another-page/#findComment-343406 Share on other sites More sharing options...
rhyspaterson Posted September 7, 2007 Share Posted September 7, 2007 How do i do that? $var = $_GET[?] do i put the variable name in there? http://www.w3schools.com/php/php_get.asp Quote Link to comment https://forums.phpfreaks.com/topic/68159-change-variable-in-another-page/#findComment-343422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.