- Joined
- Jun 1, 2010
- Posts
- 548
- Reaction score
- 2
I don't have any clue about php really so if anyone could give a layman's answer that would be awesome. I've got a contact form, got it all styled as I want, but on submit it currently prints a response, unformatted, on a white page (code below).
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
How could I change this to to make it a bit more sophisticated? I don't really want to use js, is there a php solution? Either a pop up to confirm it was/wasn't sent or ideally printing those statements somewhere on the page with the form, as opposed to unformatted on a separate page?
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
How could I change this to to make it a bit more sophisticated? I don't really want to use js, is there a php solution? Either a pop up to confirm it was/wasn't sent or ideally printing those statements somewhere on the page with the form, as opposed to unformatted on a separate page?