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

hi, i have knowledge about PHP/MYSQL,i am fresher M.Sc-IT 2009 pass out,any recruitment in PHP please let me know.

0 Answers  


What are the features and advantages of object-oriented programming in php?

0 Answers  


Difference between notify url, return url in paypal payment gateway?

4 Answers   A1 Technology, Capital IQ, CMS, Essar, HCL, IAS, Karvy, L&T, State Bank Of India SBI, TATA, Tisco, WNS,


Write a program using while loop?

0 Answers  


What are the benefits of composer?

0 Answers  






What is the difference between htmlentities() and htmlspecialchars()?

0 Answers  


When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?

0 Answers  


Name some of the popular frameworks in php.

0 Answers  


How do you parse and process html/xml in php?

0 Answers  


Is salary a ratio or interval?

0 Answers  


What is the role of php.ini file?

0 Answers  


Tell me are parent constructors called implicitly inside a class constructor?

0 Answers  


Categories