addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [houston-php] session_start() issues

From: user 1.
Sent on: Wednesday, August 25, 2010 4:19 PM
That's not a server-side feature, that's a browser. Unless you're using a session to store the values, check if the session is valid and repopulate the field - you are limited to the browser's default behavior.

Try this..
First - Not sure why you aren't doing validation on the page before it's posted. What you're doing is a horrible practice.

Second - IF You must do it that way. Store the user's input in the session. In the "Value" parameter of your input fields, echo the values if the session exist.

That would solve your problem.

"A simple man believes anything, but a prudent man gives thought to his steps." Proverbs 14:15

--- On Wed, 8/25/10, Jonny Nguyen <[address removed]> wrote:

From: Jonny Nguyen <[address removed]>
Subject: [houston-php] session_start() issues
To: [address removed]
Date: Wednesday, August 25, 2010, 3:29 PM

I experience a strange behavior with session_start().

My browser back button is not working correctly when i use the session_start(); It loads the previous page but non of the form values gets loaded. it comes up as a new request.
I have a form validation that will use the parent.history.back() if it fails. this validation works fine when i don't use the session_start().  when I do use the session_start() it will just reset all the values in the form. I have tested this in IE and in Firefox and get the same behaviors.

I have look far and near and have not been able to find anything useful.

please let me know you have encounter this issue in the past.

thanks in advance

Jonny




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Jonny Nguyen ([address removed]) from Houston PHP Users Group.
To learn more about Jonny Nguyen, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy