|
||||
mail function debug help
dear coder,
Recently i search over the net and obtain some mail function code, and trying to add in addition information I have create a form (order.htm)and trying to call the (order.php) php code as below PHP Code:
PHP Code:
the problem probably come from mail("host@privatehoster.com", $subject, $message, $from); but i have no idea how to modify it... can some one give me some guide?
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
|
||||
this is my form coding, appreciate your effort
Code:
<form method="post" action="order.php">
<!-- DO NOT change ANY of the php sections -->
<?php $ip = getenv("REMOTE_ADDR");
$httpref = getenv ("HTTP_REFERER");
$httpagent = getenv ("HTTP_USER_AGENT");
?>
<input name="ip" value="<?php echo $ip ?>" type="hidden">
<input name="httpref" value="<?php echo $httpref ?>" type="hidden">
<input name="httpagent" value="<?php echo $httpagent ?>" type="hidden">
<p>Full Name: <br>
<input name="client" size="35" type="text"> (Require)<br>
Email:<br>
<input name="clientmail" size="35" type="text"> (Require)<br>
Domain:<br>
<input name="clientdomain" size="35" type="text"> (Require)<br>
Address <br>
<input name="clientaddress" size="35" type="text"> (Require)<br>
<br>
Phone: <br>
<input name="clientphone" size="35" type="text"> (Require)<br>
Promo Code: <br>
<input name="clientpromo" size="35" type="text"> (Optional)<br>
</p>
<p>Package :<br>
<select name="clientpackage" size="1">
<option value=" none ">Select your 'Private' Plan</option>
<option value=" Domain Registration ">'Private' Domain Registration RM35.00/year</option>
<option value=" Domain Transfer ">'Private' Domain Transfer RM30.00 1st year</option>
<option value=" Domain Renew ">'Private' Domain Renew RM35.00 /yearr</option>
<option value=" Private 1">'Private' Plan 1 RM99.99/yearr</option>
<option value=" Private 2">'Private' Plan 2 (Free Domain) RM189.99/year</option>
<option value=" Private 3">'Private' Plan 3 (Free Domain) RM279.99/year</option>
<option value=" Private 4">'Private' Plan 4 (Free Domain) RM369.99/year</option>
<option value=" Private 5">'Private' Plan 5 (Free Domain) RM459.99/year</option>
</select>
<br>
</p>
<p>Payment :<br>
<select name="clientpayment" size="1">
<option value=" none ">Select your 'Private' Payment Method</option>
<option value=" MayBank2u ">May Bank</option>
<option value=" Public Bank ">Public Bank</option>
<option value=" Paypal ">PayPal</option>
</select>
</p>
<p> <br>
Additional Comment: <br>
<textarea name="clientcomment" rows="4" cols="34"></textarea> <br>
<input value="'Private' Order" type="submit">
</p>
</form>
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
|
|||
Quote:
When you receive the mail, is it only certain info such as IP address, browser type etc empty in the message body? Or are all form fields empty in the mail? If so, is your form script saved with the .php file extension? If saved with .htm, it may not be parsing the php code and passing the POST data. Hopefully iamfreelancer will have more helpful points. |
|
||||
while i receive the email
it only show Quote:
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
|
||||
See mylinear's post:
Quote:
|
|
||||
i haven't test out your code yet... but from the look of the result file that you posted... it think it is exactly what Seanie said... save your html form page into a .php file....
if problem still exist... please let us know again. |
|
||||
I have solve my problem,
just to add in those additional infor at PHP Code:
I have a webmail at mydomain.com/webmail, but I have set my MX record in to mail.live.com every time people send me email, i will receive at mail.live.com, but I wonder why all this infor submit will not arrive my mail.live.com, instead drop into my server webmail.
__________________
I blog my IT Engineer LIFE at iCalvyn.com |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code or mail function problem? | calvynlee | Website Programming | 6 | 11-05-2008 11:39 AM |
| Pls debug my CSS | unclejim | Website Design | 0 | 28-08-2006 05:48 PM |
| E-Mail Backup, Email Defense, E-Mail Marketing! Get one for your website! | starsearcher | Web Hosting Offers | 0 | 16-01-2006 12:03 PM |
| asp : tolong debug sat... | ijoke | Website Programming | 1 | 13-04-2005 10:28 AM |
| asp : tolong debug sat... | ijoke | Website Design | 1 | 24-03-2005 02:03 PM |
All times are GMT +8. The time now is 09:24 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.












Linear Mode

