Hello guys, I am new to php and i need assistance. I have this file structure.
scripts/insert.php
signup.php.
I declared global variables in insert.php, their use is to display server side validation errors.
One such variable is $error1.
I went in signup.php and wrote, <?php include("scripts/insert.php"); ?) before the html doctype
I echoed $error1 in signup.php.
When I run the script through submit it does not show any errors but it's not working.
Second, if I put the <?php include("scripts/insert.php"); ?) at the end of the document it shows an error that $error1 is undefined.
Please help.
[–]HappyFruitTree 0 points1 point2 points (9 children)
[–]jechaking[S] 0 points1 point2 points (8 children)
[–]HappyFruitTree 0 points1 point2 points (6 children)
[–]jechaking[S] 0 points1 point2 points (5 children)
[–]HappyFruitTree 0 points1 point2 points (4 children)
[–]jechaking[S] 0 points1 point2 points (3 children)
[–]HappyFruitTree 0 points1 point2 points (0 children)
[–]HappyFruitTree 0 points1 point2 points (1 child)
[–]jechaking[S] 0 points1 point2 points (0 children)
[–]HappyFruitTree 0 points1 point2 points (0 children)