/    Sign up×
Community /Pin to ProfileBookmark

Php Form Post to self and hide form on submit

Hi, I want to have a php form that do the process on the same file as the form and display thank you on the same file on success. Basically, I need to hide the form and display a list of errors if there is error or hide the form and display thank you if no error all on the same file. Is that possible and how do I accomplish that? thanks.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@coding123Apr 28.2013 — You can validate form with javascript or you can use ajax call to php script and validate it with php. Post what you have so far and what are the problems you are facing.
Copy linkTweet thisAlerts:
@John_GillMay 06.2013 — Hello,

First you have to create a form with php development and validate this form with using Javascript.If any error occurs then js file desplaying it on the form otherwise it shows any message.
×

Success!

Help @phpnewbie08 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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