Help needed please
Posted: Mon Mar 06, 2006 9:46 am
feyd | Please use
frame 2 contains a thank you page.
the PHP code i have is:
can you spot any errors that may be causeing it to fail? i have tried to get it to send without filling in all fields to see if it directs to the error form - but this does not work either.
Please excuse my lack of PHP knowledge but your help will be massivly appreciated.
All the best x
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
hi there all you fantastic PHP enthusiasts.
i have a serious problem getting a php email form to work - however a freind of mine wrote the code and has left me to it. I unfortunatly no nothing about PHP and cannot figure out how to get the thing to work.
I'm sure you get real frustrated by noobie know nothings asking you to help out and do thier work for them - but i am going to work through the tutorials i found on here and really do want to learn what i am doing - in the mean time getting this form to work is a bit of an emergency and i would appreciate any help you can offer.
The form can be found at [url]http://www.toxiccreations.co.uk/contact_band_design_general.html[/url]
You'll notice there is another form too for quotes i'm hoping that by figuring one out i'll figure the other out so please ignor that for now.
te form has been created in Flash8
The actionscript i have on the send button isCode: Select all
on (release) {
gotoAndPlay(2);
loadVariablesNum("http://www.toxiccreations.co.uk/GeneralForm.php", 0, "POST");
}the PHP code i have is:
Code: Select all
<?php
$name = $_POST['name'] ;
$email = $_POST['email'] ;
$message = $_POST['questions'] ;
if (!isset($_POST['email'])) {
header( "Location: http://www.toxiccreations.co.uk/general_form.swf" );
}
elseif (empty($name) || empty($email) || empty($message)) {
header( "Location: http://www.toxiccreations.co.uk/errorform.html" );
}
else {
mail( "info@toxiccreations.co.uk", "General",
$message, "From: $name <$email>" );
}
?>Please excuse my lack of PHP knowledge but your help will be massivly appreciated.
All the best x
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]