Rocco The Taco
Rocco The Taco

Reputation: 3797

Save form element server side

How do I check and save Server Side the value of the check element (so it saves the input when user clicks back) on these form elements instead of doing this? This is not working when I click "Back" button. The check item shows as checked but in reality the action is blank.

<label>
    <input type="radio" name="proptype" id="RESI" value="RESI" checked="checked" onClick="this.form.action='?frame=TEST&base=fc';" />
                Residential</label>
<label>
    <input type="radio" name="proptype" id="LOTL" value="LOTL" onClick="this.form.action='?frame=TEST1&base=fc';" />
                Land and Lots</label>

Upvotes: 0

Views: 119

Answers (3)

Teena Thomas
Teena Thomas

Reputation: 5239

you may use $_SESSION or $_COOKIE

Upvotes: 0

Ed Heal
Ed Heal

Reputation: 60037

The click back means for the browser that just to render the previous page - i.e. use the cache etc. If you do not say that the cache expires immediately then the server may not be contacted.

Upvotes: 0

Himanshu Jaju
Himanshu Jaju

Reputation: 1589

Hi you can use sessions to store on server side.. It is very easy to use: http://www.w3schools.com/php/php_sessions.asp

Upvotes: 2

Related Questions