Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Social Networking And Marketing Interviews:Digital Marketing ManagerNews And Article WritersOnline Media OperatorPHP Community Marketing ExpertPublic Relations AssistantPublic Relations ManagerSMMSocial MediaSocial Media ExecutiveSocial Media Specialist
Copyright © 2018. All Rights Reserved
PHP Community Marketing Expert Interview Question:
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?
Submitted by: Muhammad<?php
if(empty($_POST['email'])){
echo "The email cannot be empty";
}
?>
In this question, you will be evaluated on your knowledge about forms management and validation. There is not unique answer for this question, but it must be similar to this one.
Submitted by: Muhammad
if(empty($_POST['email'])){
echo "The email cannot be empty";
}
?>
In this question, you will be evaluated on your knowledge about forms management and validation. There is not unique answer for this question, but it must be similar to this one.
Submitted by: Muhammad
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.