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

How to do single and multi line comment in php?

0 Answers  


Can you give example for trait in php?

0 Answers  


Is null empty php?

0 Answers  


Why are sessions used?

0 Answers  


Which function can be used to delete a file?

0 Answers  






How can we automatically escape incoming data?

0 Answers  


What are php filters?

0 Answers  


Why php is used with mysql?

0 Answers  


How do you identify independent and dependent variables in research?

0 Answers  


What is composer install?

0 Answers  


What is form validation in php?

0 Answers  


which function used to get the number of days between two given dates in php

1 Answers  


Categories