/    Sign up×
Community /Pin to ProfileBookmark

Hi,

I have a form that gets filled in and then submitted to a PHP verification page.
if there is errors on the page it returns a error page with all the fields.

Now one of the fields are a select box. How do I get the selection that the client selected to be displayed in the box as the default on the error page.

Could you pls. help.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYAug 21.2006 — using the [I]selected[/I] attribute (for the OPTION tag) http://www.w3.org/TR/html4/interact/forms.html#h-17.6.1
Copy linkTweet thisAlerts:
@gogelpotauthorAug 21.2006 — Thank you
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYAug 21.2006 — You're welcome ?
×

Success!

Help @gogelpot spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...