View Full Version : Help with php

02-28-2006, 02:41 PM

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

I have a page here

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");?>
$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.

02-28-2006, 04:59 PM
You must have placed you php script in the wrong place.
-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

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


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

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

You should try to add some headers!