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!

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.