Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

What are the security measures we have to take for our site not to hack by others.

3 Answers   Infosys, Torque Infotech,


Which function is used in php to delete a file?

0 Answers  


How can you propagate a session id?

0 Answers  


What are the two types of variables?

0 Answers  


How to check an key is exists in array?

0 Answers  


What is sticky form in php?

0 Answers  


How to get path of php.ini with a php script?

1 Answers  


Which character is used to match exactly one character?

0 Answers  


how to run PHP in command line?

8 Answers   InfoShore, Ramp Green, Xtreeme,


How to create reusable code in php?

0 Answers  


How to enable cURL in PHP?

0 Answers   HCL,


when we select some checkboxes and we went for next page if we came back to prevoius page the selcted checkboxe should be checked

2 Answers  


Categories