Jump to content

Validate form on response page


mpower

Recommended Posts

Normaly I validate forms with PHP or other middle ware languages. But in this case I need to do it with JavaScript. Problem is that I'm not very good at it.

 

Maybe someone is able to help me a bit? I need to "validate" a form on the response page. Let me describe an easy example for what I'm trying to accomplish.

 

I got two checkboxes in the form - one named "A" and the other "B".

 

On the response page it should check wich one of the checkboxes that was checked and if it was "A" it shell output 1, if it was "B" it shell output 2 or if both where checked it shell output "Error".

 

Does anyone know how  to accomplish this?

 

Thanks in advance // Jonas

Link to comment
https://forums.phpfreaks.com/topic/51457-validate-form-on-response-page/
Share on other sites

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.