What I want to do is instead of displaying the results of the form once submit is clicked in the original php document, I want the submit button to link to another php document and then be able to echo $firstname, $lastname etc from there, I know its possible but im not sure how to do it
I figured it out, god I feel like a retard, 3 times in a row as soon as ive posted ive figured it out, sorry :/
Does anyone know how to give an error message if a radio, checkbox or input in a form is left blank?
OopyBoo wrote:Does anyone know how to give an error message if a radio, checkbox or input in a form is left blank?
Same way I'd check other fields:
if(empty($_POST['field'])) { echo 'Error: You left "field" blank, you idiot!'; }