php function not running once user enters data on the formWhat's the best method for sanitizing user input with PHP?startsWith() and endsWith() functions in PHPIs there a function to make a copy of a PHP array to another?NOW() function in PHPWhy shouldn't I use mysql_* functions in PHP?PHP login/Register errorsEmail PHP Contact Form error as random outputPHP MAILER: Root User replace From InformationHow to pass variables and data from PHP to JavaScript?How to save 'multipart/form-data' (picture, pdf, and etc.) to mysql database mediumblob via jquery?
Why is Arya visibly scared in the library in S8E3?
In Endgame, why were these characters still around?
What are the differences between credential stuffing and password spraying?
Why is C# in the D Major Scale?
How to explain the behaviour of TreeForm?
Should I replace my bicycle tires if they have not been inflated in multiple years
If prion is a protein. Why is it not disassembled by the digestive system?
Missed the connecting flight, separate tickets on same airline - who is responsible?
What is it called when you multiply something eight times?
Is it cheaper to drop cargo than to land it?
Is Cola "probably the best-known" Latin word in the world? If not, which might it be?
Casual versus formal jacket
Was Unix ever a single-user OS?
In a vacuum triode, what prevents the grid from acting as another anode?
Why was the battle set up *outside* Winterfell?
Would "lab meat" be able to feed a much larger global population
How to improve/restore vintage Peugeot bike, or is it even worth it?
Junior developer struggles: how to communicate with management?
In Avengers 1, why does Thanos need Loki?
Do I have to make someone coauthor if he/she solves a problem in StackExchange, asked by myself, which is later used in my paper?
How did Arya get her dagger back from Sansa?
What does this colon mean? It is not labeling, it is not ternary operator
I caught several of my students plagiarizing. Could it be my fault as a teacher?
How to give very negative feedback gracefully?
php function not running once user enters data on the form
What's the best method for sanitizing user input with PHP?startsWith() and endsWith() functions in PHPIs there a function to make a copy of a PHP array to another?NOW() function in PHPWhy shouldn't I use mysql_* functions in PHP?PHP login/Register errorsEmail PHP Contact Form error as random outputPHP MAILER: Root User replace From InformationHow to pass variables and data from PHP to JavaScript?How to save 'multipart/form-data' (picture, pdf, and etc.) to mysql database mediumblob via jquery?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
The function T_CONTINUE does not run and gives the error of Undefined index: city1 on line 82, along with city 2 and city 3. The rest of the if statments do work verifying the input from the user. If the user forgets to enter a part of the form the first individual error messages show and then the genral errMessage should show but does not.
After the user enteres all correct information and continue ==true then it should post back what they selected in the form.
<HTML>
<head>
<h1>Weather Wizards Registration Verification Form</h1>
<hr>
<br>
<?php //start PHP codeing
$name=
$parentName=
$email=
$phone=
$member=
$city1="";
$city2="";
$city3="";
$nameErr="";
$parentNameErr="";
$parentEmailErr="";
$parentPhoneErr="";
$memberErr="";
$errMessage ="";
$continue=true;
if ($_SERVER["REQUEST_METHOD"] == "POST")
$name = test_input($_POST["name"]);
$parentName = test_input($_POST["parentName"]);
$email = test_input($_POST["email"]);
$phone = test_input($_POST["phone"]);
function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
if ($_SERVER["REQUEST_METHOD"] == "POST") //Name
if (empty($_POST["name"]))
$nameErr = "You forgot to enter your name.";
$continue==false;
echo $nameErr;
else
$name = test_input($_POST["name"]);
if (empty($_POST["parentName"])) //Parent Name
$parentNameErr = "You forgot to enter your parent or guardian’s name";
echo $parentNameErr;
$continue==false;
else
$parentNameErr = test_input($_POST["parentName"]);
if (empty($_POST["email"])) //Email
$parentEmailErr = "You forgot to enter your parent or guardian’s email.";
echo $parentEmailErr;
$continue==false;
else
$parentEmailErr = test_input($_POST["email"]);
if (empty($_POST["phone"])) //phone number
$parentPhoneErr = "You forgot to enter your parent or guardian’s phone";
echo $parentPhoneErr;
$continue==false;
else
$parentNameErr = test_input($_POST["phone"]);
if (empty($_POST["member"])) //membership
$memberErr = "You forgot to enter your membership status.";
echo $memberErr;
$continue==false;
else
$memberErr = test_input($_POST["member"]);
T_CONTINUE();
// if ($continue) T_CONTINUE();
function T_CONTINUE()
if($continue = false)
$errMessage = "We need your name and your parent or guradians name,email,phone and your membership status to send information about our workshop. Hit the back button on the browser to try again";
echo $errMessage;
else if ($continue =true)
if( $_POST["city1"])
// if Charleston is selected:
echo"You are nearest to our Charleston SC location, the Holy City! Go River Dogs!";
else if( $_POST["city2"])
// if per Summerville is selected:
echo"You are nearest to our Summerville SC location, the Birthplace of Sweet Tea! Refreshing!";
else if( $_POST["city3"])
// if per Mt. Pleasant is selected:
echo"You are nearest to our Mt. Pleasant, SC location that has a historical and beachy vibe!";
?>
</body>
<style type="text/css">
html
background-color: lightgray;
</style>
</HTML>
php
|
show 1 more comment
The function T_CONTINUE does not run and gives the error of Undefined index: city1 on line 82, along with city 2 and city 3. The rest of the if statments do work verifying the input from the user. If the user forgets to enter a part of the form the first individual error messages show and then the genral errMessage should show but does not.
After the user enteres all correct information and continue ==true then it should post back what they selected in the form.
<HTML>
<head>
<h1>Weather Wizards Registration Verification Form</h1>
<hr>
<br>
<?php //start PHP codeing
$name=
$parentName=
$email=
$phone=
$member=
$city1="";
$city2="";
$city3="";
$nameErr="";
$parentNameErr="";
$parentEmailErr="";
$parentPhoneErr="";
$memberErr="";
$errMessage ="";
$continue=true;
if ($_SERVER["REQUEST_METHOD"] == "POST")
$name = test_input($_POST["name"]);
$parentName = test_input($_POST["parentName"]);
$email = test_input($_POST["email"]);
$phone = test_input($_POST["phone"]);
function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
if ($_SERVER["REQUEST_METHOD"] == "POST") //Name
if (empty($_POST["name"]))
$nameErr = "You forgot to enter your name.";
$continue==false;
echo $nameErr;
else
$name = test_input($_POST["name"]);
if (empty($_POST["parentName"])) //Parent Name
$parentNameErr = "You forgot to enter your parent or guardian’s name";
echo $parentNameErr;
$continue==false;
else
$parentNameErr = test_input($_POST["parentName"]);
if (empty($_POST["email"])) //Email
$parentEmailErr = "You forgot to enter your parent or guardian’s email.";
echo $parentEmailErr;
$continue==false;
else
$parentEmailErr = test_input($_POST["email"]);
if (empty($_POST["phone"])) //phone number
$parentPhoneErr = "You forgot to enter your parent or guardian’s phone";
echo $parentPhoneErr;
$continue==false;
else
$parentNameErr = test_input($_POST["phone"]);
if (empty($_POST["member"])) //membership
$memberErr = "You forgot to enter your membership status.";
echo $memberErr;
$continue==false;
else
$memberErr = test_input($_POST["member"]);
T_CONTINUE();
// if ($continue) T_CONTINUE();
function T_CONTINUE()
if($continue = false)
$errMessage = "We need your name and your parent or guradians name,email,phone and your membership status to send information about our workshop. Hit the back button on the browser to try again";
echo $errMessage;
else if ($continue =true)
if( $_POST["city1"])
// if Charleston is selected:
echo"You are nearest to our Charleston SC location, the Holy City! Go River Dogs!";
else if( $_POST["city2"])
// if per Summerville is selected:
echo"You are nearest to our Summerville SC location, the Birthplace of Sweet Tea! Refreshing!";
else if( $_POST["city3"])
// if per Mt. Pleasant is selected:
echo"You are nearest to our Mt. Pleasant, SC location that has a historical and beachy vibe!";
?>
</body>
<style type="text/css">
html
background-color: lightgray;
</style>
</HTML>
php
So the functionT_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?
– tshimkus
Mar 21 at 2:55
T_CONTINUE()
refers to a bunch of variables that are never set:$email
,$parentName
,$name
, etc.
– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be$_POST['name']
– Barmar
Mar 21 at 4:29
What istest_input()
?
– Barmar
Mar 21 at 4:30
1
But you never use$continue
after all the validation checks. It should probably be something likeif ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33
|
show 1 more comment
The function T_CONTINUE does not run and gives the error of Undefined index: city1 on line 82, along with city 2 and city 3. The rest of the if statments do work verifying the input from the user. If the user forgets to enter a part of the form the first individual error messages show and then the genral errMessage should show but does not.
After the user enteres all correct information and continue ==true then it should post back what they selected in the form.
<HTML>
<head>
<h1>Weather Wizards Registration Verification Form</h1>
<hr>
<br>
<?php //start PHP codeing
$name=
$parentName=
$email=
$phone=
$member=
$city1="";
$city2="";
$city3="";
$nameErr="";
$parentNameErr="";
$parentEmailErr="";
$parentPhoneErr="";
$memberErr="";
$errMessage ="";
$continue=true;
if ($_SERVER["REQUEST_METHOD"] == "POST")
$name = test_input($_POST["name"]);
$parentName = test_input($_POST["parentName"]);
$email = test_input($_POST["email"]);
$phone = test_input($_POST["phone"]);
function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
if ($_SERVER["REQUEST_METHOD"] == "POST") //Name
if (empty($_POST["name"]))
$nameErr = "You forgot to enter your name.";
$continue==false;
echo $nameErr;
else
$name = test_input($_POST["name"]);
if (empty($_POST["parentName"])) //Parent Name
$parentNameErr = "You forgot to enter your parent or guardian’s name";
echo $parentNameErr;
$continue==false;
else
$parentNameErr = test_input($_POST["parentName"]);
if (empty($_POST["email"])) //Email
$parentEmailErr = "You forgot to enter your parent or guardian’s email.";
echo $parentEmailErr;
$continue==false;
else
$parentEmailErr = test_input($_POST["email"]);
if (empty($_POST["phone"])) //phone number
$parentPhoneErr = "You forgot to enter your parent or guardian’s phone";
echo $parentPhoneErr;
$continue==false;
else
$parentNameErr = test_input($_POST["phone"]);
if (empty($_POST["member"])) //membership
$memberErr = "You forgot to enter your membership status.";
echo $memberErr;
$continue==false;
else
$memberErr = test_input($_POST["member"]);
T_CONTINUE();
// if ($continue) T_CONTINUE();
function T_CONTINUE()
if($continue = false)
$errMessage = "We need your name and your parent or guradians name,email,phone and your membership status to send information about our workshop. Hit the back button on the browser to try again";
echo $errMessage;
else if ($continue =true)
if( $_POST["city1"])
// if Charleston is selected:
echo"You are nearest to our Charleston SC location, the Holy City! Go River Dogs!";
else if( $_POST["city2"])
// if per Summerville is selected:
echo"You are nearest to our Summerville SC location, the Birthplace of Sweet Tea! Refreshing!";
else if( $_POST["city3"])
// if per Mt. Pleasant is selected:
echo"You are nearest to our Mt. Pleasant, SC location that has a historical and beachy vibe!";
?>
</body>
<style type="text/css">
html
background-color: lightgray;
</style>
</HTML>
php
The function T_CONTINUE does not run and gives the error of Undefined index: city1 on line 82, along with city 2 and city 3. The rest of the if statments do work verifying the input from the user. If the user forgets to enter a part of the form the first individual error messages show and then the genral errMessage should show but does not.
After the user enteres all correct information and continue ==true then it should post back what they selected in the form.
<HTML>
<head>
<h1>Weather Wizards Registration Verification Form</h1>
<hr>
<br>
<?php //start PHP codeing
$name=
$parentName=
$email=
$phone=
$member=
$city1="";
$city2="";
$city3="";
$nameErr="";
$parentNameErr="";
$parentEmailErr="";
$parentPhoneErr="";
$memberErr="";
$errMessage ="";
$continue=true;
if ($_SERVER["REQUEST_METHOD"] == "POST")
$name = test_input($_POST["name"]);
$parentName = test_input($_POST["parentName"]);
$email = test_input($_POST["email"]);
$phone = test_input($_POST["phone"]);
function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
if ($_SERVER["REQUEST_METHOD"] == "POST") //Name
if (empty($_POST["name"]))
$nameErr = "You forgot to enter your name.";
$continue==false;
echo $nameErr;
else
$name = test_input($_POST["name"]);
if (empty($_POST["parentName"])) //Parent Name
$parentNameErr = "You forgot to enter your parent or guardian’s name";
echo $parentNameErr;
$continue==false;
else
$parentNameErr = test_input($_POST["parentName"]);
if (empty($_POST["email"])) //Email
$parentEmailErr = "You forgot to enter your parent or guardian’s email.";
echo $parentEmailErr;
$continue==false;
else
$parentEmailErr = test_input($_POST["email"]);
if (empty($_POST["phone"])) //phone number
$parentPhoneErr = "You forgot to enter your parent or guardian’s phone";
echo $parentPhoneErr;
$continue==false;
else
$parentNameErr = test_input($_POST["phone"]);
if (empty($_POST["member"])) //membership
$memberErr = "You forgot to enter your membership status.";
echo $memberErr;
$continue==false;
else
$memberErr = test_input($_POST["member"]);
T_CONTINUE();
// if ($continue) T_CONTINUE();
function T_CONTINUE()
if($continue = false)
$errMessage = "We need your name and your parent or guradians name,email,phone and your membership status to send information about our workshop. Hit the back button on the browser to try again";
echo $errMessage;
else if ($continue =true)
if( $_POST["city1"])
// if Charleston is selected:
echo"You are nearest to our Charleston SC location, the Holy City! Go River Dogs!";
else if( $_POST["city2"])
// if per Summerville is selected:
echo"You are nearest to our Summerville SC location, the Birthplace of Sweet Tea! Refreshing!";
else if( $_POST["city3"])
// if per Mt. Pleasant is selected:
echo"You are nearest to our Mt. Pleasant, SC location that has a historical and beachy vibe!";
?>
</body>
<style type="text/css">
html
background-color: lightgray;
</style>
</HTML>
php
php
edited Mar 22 at 20:58
Corey Austin Bell
asked Mar 21 at 2:47
Corey Austin BellCorey Austin Bell
142
142
So the functionT_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?
– tshimkus
Mar 21 at 2:55
T_CONTINUE()
refers to a bunch of variables that are never set:$email
,$parentName
,$name
, etc.
– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be$_POST['name']
– Barmar
Mar 21 at 4:29
What istest_input()
?
– Barmar
Mar 21 at 4:30
1
But you never use$continue
after all the validation checks. It should probably be something likeif ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33
|
show 1 more comment
So the functionT_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?
– tshimkus
Mar 21 at 2:55
T_CONTINUE()
refers to a bunch of variables that are never set:$email
,$parentName
,$name
, etc.
– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be$_POST['name']
– Barmar
Mar 21 at 4:29
What istest_input()
?
– Barmar
Mar 21 at 4:30
1
But you never use$continue
after all the validation checks. It should probably be something likeif ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33
So the function
T_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?– tshimkus
Mar 21 at 2:55
So the function
T_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?– tshimkus
Mar 21 at 2:55
T_CONTINUE()
refers to a bunch of variables that are never set: $email
, $parentName
, $name
, etc.– Barmar
Mar 21 at 4:29
T_CONTINUE()
refers to a bunch of variables that are never set: $email
, $parentName
, $name
, etc.– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be $_POST['name']
– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be $_POST['name']
– Barmar
Mar 21 at 4:29
What is
test_input()
?– Barmar
Mar 21 at 4:30
What is
test_input()
?– Barmar
Mar 21 at 4:30
1
1
But you never use
$continue
after all the validation checks. It should probably be something like if ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33
But you never use
$continue
after all the validation checks. It should probably be something like if ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33
|
show 1 more comment
1 Answer
1
active
oldest
votes
So there are couple of problems with what you have.
- Inside the
T_CONTINUE
function, you assignfalse
to$continue
. You are doing an assignment instead of a comparison.=
vs==
- In order to access the global variable
$continue
you need to use the global array like$GLOBALS['continue']
. - During development, turn on error reporting to
ALL
. Makes debugging easier. Would not have helped much in this case since you were doing an assignment in the condition and that is technically not illegal.
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of$continue
– RisingSun
Mar 22 at 20:34
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55273048%2fphp-function-not-running-once-user-enters-data-on-the-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So there are couple of problems with what you have.
- Inside the
T_CONTINUE
function, you assignfalse
to$continue
. You are doing an assignment instead of a comparison.=
vs==
- In order to access the global variable
$continue
you need to use the global array like$GLOBALS['continue']
. - During development, turn on error reporting to
ALL
. Makes debugging easier. Would not have helped much in this case since you were doing an assignment in the condition and that is technically not illegal.
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of$continue
– RisingSun
Mar 22 at 20:34
add a comment |
So there are couple of problems with what you have.
- Inside the
T_CONTINUE
function, you assignfalse
to$continue
. You are doing an assignment instead of a comparison.=
vs==
- In order to access the global variable
$continue
you need to use the global array like$GLOBALS['continue']
. - During development, turn on error reporting to
ALL
. Makes debugging easier. Would not have helped much in this case since you were doing an assignment in the condition and that is technically not illegal.
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of$continue
– RisingSun
Mar 22 at 20:34
add a comment |
So there are couple of problems with what you have.
- Inside the
T_CONTINUE
function, you assignfalse
to$continue
. You are doing an assignment instead of a comparison.=
vs==
- In order to access the global variable
$continue
you need to use the global array like$GLOBALS['continue']
. - During development, turn on error reporting to
ALL
. Makes debugging easier. Would not have helped much in this case since you were doing an assignment in the condition and that is technically not illegal.
So there are couple of problems with what you have.
- Inside the
T_CONTINUE
function, you assignfalse
to$continue
. You are doing an assignment instead of a comparison.=
vs==
- In order to access the global variable
$continue
you need to use the global array like$GLOBALS['continue']
. - During development, turn on error reporting to
ALL
. Makes debugging easier. Would not have helped much in this case since you were doing an assignment in the condition and that is technically not illegal.
edited Mar 21 at 21:08
answered Mar 21 at 20:24
RisingSunRisingSun
1,2251837
1,2251837
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of$continue
– RisingSun
Mar 22 at 20:34
add a comment |
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of$continue
– RisingSun
Mar 22 at 20:34
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
Where would I add the $globals['continue'].
– Corey Austin Bell
Mar 22 at 20:24
in place of
$continue
– RisingSun
Mar 22 at 20:34
in place of
$continue
– RisingSun
Mar 22 at 20:34
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55273048%2fphp-function-not-running-once-user-enters-data-on-the-form%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So the function
T_CONTINUE()
is not running, even though it gets called on the last line? Do you have error reporting enabled, and if so, is everything executing without any errors or warnings?– tshimkus
Mar 21 at 2:55
T_CONTINUE()
refers to a bunch of variables that are never set:$email
,$parentName
,$name
, etc.– Barmar
Mar 21 at 4:29
$_POST[($name)]
should probably be$_POST['name']
– Barmar
Mar 21 at 4:29
What is
test_input()
?– Barmar
Mar 21 at 4:30
1
But you never use
$continue
after all the validation checks. It should probably be something likeif ($continue) T_CONTINUE();
– Barmar
Mar 21 at 4:33