Jump to content

Hide Text fields after input button is clicked


macman90

Recommended Posts

In my last post I asked for help building a form that would compare input against whatever and then return a result based on whether or not it matched. I have that all up and running, thanks for the help! Now I need to set it so that once the submit button is pressed, only the information returned is displayed, the text boxes for name and email need to go away. I don't want to use forwarding to do this, I want to keep it all in one page. I haven't had much luck looking around the web so  I hope you guys can help me out again!

Link to comment
Share on other sites

can you post your code?

 

basically set a success variable when you process your post data.

 

now when you get to your html output, check that success value. if it's true, show a success message and if it's false show the form again.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.