Problem with my PHP and HTML?

Shane

New member
Below is a bit of a confusion of HTML inside PHP.
You will get the idea what I want to do.
Can anyone help me make this work plz?
Explanation would be greatly appreciated, as I am still sorta new to PHP

if (variable == "y")
{
print "<p>&nbsp Is the above information correct?";
<p><br><form action = "printout.php" method = "post">
&nbsp
<input type = "submit" name = "yes" value = "Correct" />
&nbsp &nbsp &nbsp
<a href="index.html"><input type = "button" value = "Incorrect" /></a>
</form></p>
}

Thx guys,
Shane Thompson
soz, thx for bringing up the dollar sign. I did know, I just missed it out when I put it up here. Because my code is slightly different, there are other things in the if statement, I just cropped that into it if you get what I mean
 
Back
Top