Jump to content

Stop Reset on forms


Dragosvr92
Go to solution Solved by Pikachu2000,

Recommended Posts

Now that i think better i think you misunderstood me

 

let me explain again...

 

So you browse to page X ..

you Write whatever you write in the form and select some checkboxes etc.....

after you Submit the form all this settings are going empty/unchecked...

is there a way to make the form keep the data even after it was submited?

Link to comment
Share on other sites

Issue 1) Store the data in a $_SESSION variable and output it as the 'value' attribute for your form elements.

Issue 2) Check to see if data exists in the $_GET variable, and if it does, output it as the 'value' attribute for your form elements.

Link to comment
Share on other sites

Issue 1) Store the data in a $_SESSION variable and output it as the 'value' attribute for your form elements.

Issue 2) Check to see if data exists in the $_GET variable, and if it does, output it as the 'value' attribute for your form elements.

 

Hi haku

 

The second thing would be more important as if the GET Link has the data stored in it will have them saved

 

but i am not that advanced to php to know how to do that.... sadly

could you please give me a hand on this ?

 

 

 

btw ill want to say that when i pressed the qoutr link i got this message

Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later. 

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.