PDA

View Full Version : Help with php


abelrobinson
02-28-2006, 02:41 PM
Hi,

new with php in fact my first attempt and am into problems :)

I have a page here
http://creativefactoryinc.com/temp/freezevalve/Pages/order.html

which has a form that needs to be filled and the info shud be mailed to a mailbox.

here is the php script

<?import_request_variables ("GP");?>
<?
$myemail="info@creativefactoryinc.com";
$from = "From:".$email;
$subject="New Customer ";
$message=$message."\nModel Number: ".$Model;
$message=$message."\nQuantity: ".$Quantity;
$message=$message."\nName: ".$Name;
$message=$message."\nAddress: ".$Address;
$message=$message."\nPhone: ".$Phone;
$message=$message."\nEmail ID: ".$email;


mail($myemail, $subject, $message, $from, $to);
php header("Location:order.html");
?>

Please use code tags when posting code

Creative Insanity
02-28-2006, 04:36 PM
Please do a search of the forums as this topic has been covered many many times.

domedia
02-28-2006, 04:59 PM
You must have placed you php script in the wrong place.
http://creativefactoryinc.com/temp/freezevalve/Pages/contactproc.php
-The requested URL /temp/freezevalve/Pages/contactproc.php was not found on this server.

Creative Insanity
02-28-2006, 05:02 PM
Like dom said:

Not Found
The requested URL /temp/freezevalve/Pages/contactproc.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.creativefactoryinc.com Port 80

abelrobinson
02-28-2006, 05:37 PM
Thank you for the tip guys...it was in the wrong directory.


Thanks,

Creative Insanity
02-28-2006, 06:48 PM
Ask your hoster if they plan on updating apache to 2.x. Way better than 1.3.x

D7
03-06-2006, 01:57 AM
some funky look php mail script :p

You should try to add some headers!