Jump to content

[SOLVED] PHP FORM validation alerts


knowledge_6

Recommended Posts

Here is the second of my code that has the validation:

 

its a basic form for RSVP for a wedding.. i do not want to direct them to another page with just one line with the alert message.. i just want a pop up box alerting them like in javascript...

 

is there a way to do this in php?

 

if($from == '') {print "What are you thinking not filling in your e-mail address? Go back and do it!!!";}

else {

if($name == '') {print "What are you thinking not filling in your name? go back and do it!!!";}

 

 

Link to comment
https://forums.phpfreaks.com/topic/37794-solved-php-form-validation-alerts/
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.