Page 1 of 1

Tell a friend - some php help needed

Posted: Sun Jul 08, 2007 4:29 am
by harleyquinn
I really need some help, it's probably a very simple fix, but I just can't seem to wrap my head around php -- feeling very stupid right now. :-[

Basically, I just need to add some text above the form when a user initially goes to the page where the form lives. I don't want to place it on the actual page, because then it won't change depending on the user's action; I'd like to keep it all within the php file. I tried placing some text right below where it says and it sort of had the effect I was going for, except the errors appeared above the text, which I don't want.

So for instance, when one would first go to the page, it would say something like:
Send this page to a Friend
some other text here
Form here

Then if there is an error, the text would change to:
Send this page to a Friend
Error(s) :
Form here

But if there are no errors, it would just say:
Thanks for telling a friend
some other text here
(no form)

I've been at this for hours, and I can't figure it out. Can someone please help?

Thanks in advance,
HQ