I am a PHP beginner and I am trying to create a simple form in php page.
I made a form with html and when I click a submission button, it goes to a php page.
In that page, I would like to create buttons, one is if a user input info from html page is correct, click "Yes" and then goes to another page, stating thank you. Another button is "No", which means input info is not right and go back to the first html form.
Up to display the user input info, I'm doing fine. But somehow, once I add the last part of the code, it stops working and get a blank page.
The code I have an issue is as follows:
print "<p>If this is correct, click <input type="button" onclick="location.href('url')" value="Yes" />.
Otherwise, click <input type="button" onclick="location.href('url')" value="No" /></p>";
If I comment out the above code, the PHP page works fine. But I would like to add an additional function on my form.
I might be doing totally wrong, as I don't have coding brains, but I really appreciate if someone let me know what part I am not doing right and how to solve my problem.
Thank you in advance.