Forums
This topic is locked
I know 2 things about PHP jack and squat
Posted 14 Mar 2003 22:32:01
1
has voted
14 Mar 2003 22:32:01 Dave Blohm posted:
ok, i am fairly good with .ASP, but I don't know anything about PHP...I will pick up a book on the way home tonight...in the meantime...i have written a form that dumps to an asp page that mails the contents of the form fields to a email address. Well the server my client is on is a *nix box that supports ASP, but doesn't support CDO objects and I therefore cannot send email using ASP mehtods...i figured out the email portion...but i cant figure out how to make the php page collect the form data to send...
any help would be greatly appreciated.
Doc
Rangewalk Digital Studios
Replies
Replied 14 Mar 2003 23:57:28
14 Mar 2003 23:57:28 Michael O'Neill replied:
Hi Dave, the code below assumes that your sending page has a form with 4 form fields called company, contact, email and telno. The php page picks them up automatically when you code the form field names with a $ in front of them.
PHP is easy compared to ASP
Have fun.
Michael.
$toaddress = " ";
$subject = "Username Request";
$mailcontent = "Company name: ".$company."\n"
."Customer contact: ".$contact."\n"
."Customer email: ".$email."\n"
."Customer Tel No: ".$telno."\n";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
Edited by - carphone on 15 Mar 2003 00:00:52
PHP is easy compared to ASP
Have fun.
Michael.
$toaddress = " ";
$subject = "Username Request";
$mailcontent = "Company name: ".$company."\n"
."Customer contact: ".$contact."\n"
."Customer email: ".$email."\n"
."Customer Tel No: ".$telno."\n";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
Edited by - carphone on 15 Mar 2003 00:00:52
Replied 15 Mar 2003 02:47:46
15 Mar 2003 02:47:46 Dave Blohm replied:
many thanks...
Doc
Rangewalk Digital Studios
Doc
Rangewalk Digital Studios