Tell a friend - some php help needed

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
harleyquinn
Forum Members
Forum Members
Posts: 36
Joined: Fri Dec 22, 2006 4:29 pm

Tell a friend - some php help needed

Post 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
Post Reply

Return to “CMSMS Core”