There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in Language Help.
Agree with a comment or answer? Like () to up-vote the contribution!
So… I am having issues getting through PHP Form Validation… I don’t know what happened to the program for this lesson. I keep getting this error even though I’m only adding two (very simple) new lines of code:
If you go to “HTML form handling in PHP” → “Using the action attribute”, the lesson explains how we can use this attribute to take the user to another page. I am also confused by this.
it produces the same effect as using the action attibute on the form tag
form method=“post” action=“success.html”
Two different ways to accomplish something, that’s not new, one on the PHP side and the other in the HTML side, that is clear, but It would be good if the exercise also explains WHY are we using the php header method + exit; instead of the html tag attribute “action”, ot which are the advantages in using one or the other.
Here is a sample:
Assume: $md5 = $_GET[“md5”];
line of codes to iterate…
$password = $i1 . $i2;
Encrypting
$hash_md5 = hash(“md5”, $password );
if ($hash_md5 === $md5) {
$text = $password;
}
Here is HTML body
Original input: <?=htmlentities($text);?>
# The $text is to display user input
If the user input is hashed, it can be also reversed to see what the user entered. And how to use reverse in PHP, I cannot find out.