ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Need help with html forms



  1995 Mondeo Speed Machine
I've got an form that I need help with. The user signs in to a webpage and then clicks on a link from a page that opens up a form in a pop up box. I need it to do some simple checks when they click on submit on the form.

The first thing is I need to put in some validation that checks first if a text box has been filled in, then checks the number that has been keyed into the textbox with another figure held on the databse. It should also make sure that only numbers have been typed in, not letters.

Also when the user clicks on submit, the window that the form is in closes. I want to somehow make the page that is behind it automatically refresh when the pop up is closed. Is there any way to do this?

Can anyone point me to some sites that have any tutorials that will help me out. Better still if someone wants to write me out some code that I can copy and paste then that would be just super!

Rick
 
  Cupra
For the validation - javascriptsource.com. You can probably work the other stuff from there too....

Google is also a great help.
 
  1995 Mondeo Speed Machine
Cheers. :) Anyone know how I can do the auto refresh bit that I put in my first post.
 
After the form has submitted, in the popup have this code to run afterwards.

Code:
<script>
window.parent.location.reload();
window.close();
</script>
 
  1995 Mondeo Speed Machine
Nightfire said:
After the form has submitted, in the popup have this code to run afterwards.

Code:
<script>
window.parent.location.reload();
window.close();
</script>

Nice one! All the coding is at work so I'll try that out on Monday.
 


Top