Jump to content

PHP Form Question


TimUSA

Recommended Posts

I have a PHP question probably easy but no for me.

 

I am developing an online employment application for my company and i want to require the user to post at least one employment reference. so i have for example $_POST['emp1'] , $_POST['emp1add'] , $_POST['emp1phone'] ect ect ect. Instead of checking each field individually can I do something like this?

 

if (empty($_POST['emp1*']))

{

execute code

}

 

If not any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/101139-php-form-question/
Share on other sites

in the long run i will have probably ended up agreeing with you, so i will go ahead and agree with you now! especially after reading this thread...wow what an idiot! http://www.phpfreaks.com/forums/index.php/topic,192347.0.html

 

Ben: problem is i barely know php, would know where to begin with js!!

Link to comment
https://forums.phpfreaks.com/topic/101139-php-form-question/#findComment-517263
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.