tburgess
-
Posts
4 -
Joined
-
Last visited
Posts posted by tburgess
-
-
Excellent thanks Got all that now!
Last question on Ch1, page 25 section 5, why use the concatenation operator within the echo? Is that because it is within single quotes and the variables would be taken literally if concat wasn't used?
Thanks,
Tom
-
Hey, thanks for the reply! So why not just a cost of <b>\$$price. ?
-
Hi,
I hope the fact that I have a question on Ch1 doesn't mean I am not up to this but we will see.
Basically it's to do with concatenation.
On page 25, section 5, 3rd line of the echo, a cost of <b>$' . $price . '</b>
I don't understand the ' . $price . ' basically. Why the space either side of $price and each side of the dots?
Any help understanding this is greatly appreciated.
Thanks,
Tom
Ch13 - Clearing $_Post After Spam Scrubbing
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
I have just applied your technique for scrubbing strings within a contact us form. What I found is that after doing this the comments textarea of my form maintained the comments after submitting. I got aroud this by changing line 58 of script 13.1 to $scrubbed = array();
Is this ok?