php version 5.2.5
well here’s the problem, I have this home work for a class, in it we just had to copy things out of the book as they have it and follow along basically. Then the teacher add extra things onto it, one of them is to make sure everything validates xHTML strict. That’s fine except I can't get this small piece of code to validate, can anyone offer a little help. I’m new to the whole php thing.
[PHP]<p><input type="text" name="number" size="20" value="<?php if (!empty($_GET['number'])) echo $_GET['number'] ?>" /></p>[/PHP]
the validation page works if you get rid of the ">" but then the whole script stops working
well here’s the problem, I have this home work for a class, in it we just had to copy things out of the book as they have it and follow along basically. Then the teacher add extra things onto it, one of them is to make sure everything validates xHTML strict. That’s fine except I can't get this small piece of code to validate, can anyone offer a little help. I’m new to the whole php thing.
[PHP]<p><input type="text" name="number" size="20" value="<?php if (!empty($_GET['number'])) echo $_GET['number'] ?>" /></p>[/PHP]
the validation page works if you get rid of the ">" but then the whole script stops working
Comment