Dragosvr92 Posted August 28, 2010 Share Posted August 28, 2010 Hi is there a way to set forms to disable the reset function when they submit? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted August 28, 2010 Share Posted August 28, 2010 Use a conditional to check if the form has been submitted or not. Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted August 28, 2010 Author Share Posted August 28, 2010 Use a conditional to check if the form has been submitted or not. easy to say Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted August 28, 2010 Author Share Posted August 28, 2010 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? Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted August 28, 2010 Author Share Posted August 28, 2010 Another Thing ... lol its more like a PHP Question but its for HTML Too.... if you load a $_GET Link for example http://localhost/TEST/?SigText=SOMETEXT&Nr=70 To load the values in the Form ? Quote Link to comment Share on other sites More sharing options...
haku Posted August 30, 2010 Share Posted August 30, 2010 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. Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted August 30, 2010 Author Share Posted August 30, 2010 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. Quote Link to comment Share on other sites More sharing options...
Solution Pikachu2000 Posted August 30, 2010 Solution Share Posted August 30, 2010 OK. I think what you're asking about is how to make your forms "sticky", so the values remain in the fields, is that right? Your original question sounded like you wanted to disable a 'reset' button on the page. Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted August 31, 2010 Author Share Posted August 31, 2010 Pikachu2000 Dude .. thank you ! with the reset thing i meant to stop the Form settings to be reset after submit if i wanted to disable the reset button i could just removed it .. i didnt had any Quote Link to comment Share on other sites More sharing options...
Dragosvr92 Posted September 3, 2010 Author Share Posted September 3, 2010 Just marked this as Solved... Thanks Again Quote Link to comment 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.