The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Need to add an email function to this form to send a php generated email with all of the data from that form in it, structured how it is. It also need to capture the refering URL which bought you to this page in the first place.
This is a little over my head, and now quite urgent for me to sort... Like, by tomorrow!!!!
Any help welcome
Cheers
> You're not planning on sending people virus' are you? :P
lol, nope, just have to get this project finished by Monday, have 14 forms to do and can work out the rest if I can gett some guidance on the first.
My PHP skills so suxor... too much time with ASP recently.
What I really need is someone to take that page and stick the code in for me.
On submit, the form needs to send an HTML email containing all the data on that form (not to worried about layout just yet for the email) to a fixed email address.
The email should also contain ther refer to that page. ie. If the link has come through google, I need to capture that information to evaluate the success of a click through campaign on various search engines.
There should also be a hidden field wich giveds the name of the form in the mail (this can be the href/refer what ever)
Now due to time, I'm seriously debating paying for this just to get it out of the way.
Cheers
A
Page 0 = PHP page that the form is submitted to
Page -1 = Form page (this is accessed via $_SERVER['HTTP_REFERRER'])
Page -2 = The page you want to find - referrer of Page -1
>If there are any mistakes in there (which I'm sure there will be),
> please excuse me as I started drinking 4 hours ago....
lol, ideally, I need to be cheeky and ask for the whole solution... For once, I'm actually very desperate!
$message = "";
foreach ($_POST as $key => $value)
{
$message .= $key . ": " . $value . "\n";
}
$message .= $_SERVER['HTTP_REFERRER'];
mail("[email protected]", "My Subject", $message);
?>
Though that referring url will be the one of the form page. You need to stick a hidden input on the form page using PHP or something to capture the referring URL.
If there are any mistakes in there (which I'm sure there will be), please excuse me as I started drinking 4 hours ago....
Need to add an email function to this form to send a php generated email with all of the data from that form in it, structured how it is. It also need to capture the refering URL which bought you to this page in the first place.
This is a little over my head, and now quite urgent for me to sort... Like, by tomorrow!!!!
Any help welcome
Cheers