Jump to content

Change variable in another page


GrayFox12

Recommended Posts

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

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.