Reply
My form is not working in Internet Explorer...Please help! (html and php included)
Old 09-25-2007, 04:01 PM My form is not working in Internet Explorer...Please help! (html and php included)
Average Talker

Posts: 15
Name: Matt
Please advise why this form is not working ;(
It is not sending my customer the information when using the form in Internet Explorer.

I would really appreciate the help!


HTML....


<form method="post" action="process.php">
<div align="center">
<table width="455" bgcolor="#f1dfb6" border="0">
<tr>
<td valign="top">Desired Arrival Date <font size="1"><br />
(example November 09, 2007):</font></td>
<td valign="top"><input type="text" name="t1"></td>
</tr>
<tr>
<td valign="top">Length of Stay <font size="1"><br />
(Number of Nights/Weeks):</font></td>
<td valign="top"><input type="text" name="t2"></td>
</tr>
<tr>
<td valign="top">Number in Party<br />
<font size="1"> (# of Adults & # of Children):</font> </td>
<td valign="top"><input type="text" name="t3"></td>
</tr>
<tr>
<td valign="top">Full Name: </td>
<td valign="top"><input type="text" name="t4"></td>
</tr>
<tr>
<td valign="top">Email Address:</td>
<td valign="top"><input type="email" name="t5"></td>
</tr>
<tr>
<td valign="top">Telephone w/ Area Code: </td>
<td valign="top"><input type="text" name="t6"></td>
</tr>
<tr>
<td valign="top">Best time to call: </td>
<td valign="top"><input type="text" name="t7"></td>
</tr>
<tr>
<td valign="top">Comments:</td>
<td valign="top"><textarea name="t8" cols="20" rows="5"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" value="Submit">
<input name="Reset" type="reset" value="Reset" /></td>
</tr>
</table>
</div>
</form>
<div align="center">
<center>
</center>
</div></td>
</tr>
<tr>
<td height="18"></td>
<td valign="top"><div align="center">
<p>&nbsp;</p>
</div></td>
</tr>
<tr>
<td height="37"></td>
<td valign="top"><div align="center"><a href="index.html">Home</a> | <a href="rooms.html">Facilities
and Rates</a> | <a href="contact.html">Contact</a></div>



PHP.....(process.php)

<?php

$mymail = 'mcannon@hwsinet.com';
$cc = 'Customer Date Request';
$BoDy = ' ';
$FrOm = 'FROM:' .$_POST['t1'];
$FrOm .= 'Reply-To:' .$_POST['t1'];
$FrOm .= 'X-MAILER: PHP'.phpversion();
$BoDy .= 'Desired Arrival Date (example November 09, 2007):: ';
$BoDy .= $_POST['t1'];
$BoDy .= "\n";
$BoDy .= 'Length of Stay (Number of Nights/Weeks):: ';
$BoDy .= $_POST['t2'];
$BoDy .= "\n";
$BoDy .= 'Number in Party (# of Adults & # of Children): : ';
$BoDy .= $_POST['t3'];
$BoDy .= "\n";
$BoDy .= 'Full Name: : ';
$BoDy .= $_POST['t4'];
$BoDy .= "\n";
$BoDy .= 'Email Address:: ';
$BoDy .= $_POST['t5'];
$BoDy .= "\n";
$BoDy .= 'Telephone w/ Area Code: : ';
$BoDy .= $_POST['t6'];
$BoDy .= "\n";
$BoDy .= 'Best time to call: : ';
$BoDy .= $_POST['t7'];
$BoDy .= "\n";
$BoDy .= 'Comments:: ';
$BoDy .= $_POST['t8'];
$BoDy .= "\n";
$send = mail("$mymail", "$cc", "$BoDy", "$FrOm");
///Redirect user to your homepage....
if($send)
{
echo '<html><head>';
echo '<meta http-equiv="refresh" content="0;URL=http://www.mypoconocabin.com">';
echo '</head><body>Sending Request to Mypoconocabin.com.....';
echo '</body></html>';
}
?>
Audiologic is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 09-25-2007, 05:53 PM Re: My form is not working in Internet Explorer...Please help! (html and php included
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,790
Name: Dan
Location: Swindon
Sorry, but that truely is some gastly code.

Also it's (a bit) easier to read if you encase code in the appropriate brackets ([php#][/php#] [code#] [/code#] without the #'s )

Whats with the BoDy is there any reason your haveing random caps in the middle?


Also can i get a link to this live?
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-25-2007, 09:33 PM Re: My form is not working in Internet Explorer...Please help! (html and php included
Average Talker

Posts: 15
Name: Matt
its at mypoconocabin.com
Audiologic is offline
Reply With Quote
View Public Profile
 
Old 09-26-2007, 04:12 AM Re: My form is not working in Internet Explorer...Please help! (html and php included
maxxximus's Avatar
Extreme Talker

Posts: 166
Name: Rob
Location: UK
Great product - poorly coded site IMO.

You should get back to designer and tell them to do a proper job.

Taking a quick look at your server side code - i'd first cut it down to the basic email processor - 'mail(sending to, subject , body text)'.

Looks like POST['t5'] is who its coming from - you can sort that out later and t1 could be subject text.Remove the if statement and the echos and double quotes and see if your message is being sent.

Code:
<?php

$mymail = 'mcannon@hwsinet.com';
$cc = 'Customer Date Request';
$BoDy = ' ';
$FrOm = 'FROM:' .$_POST['t1'];
$FrOm .= 'Reply-To:' .$_POST['t1'];
$FrOm .= 'X-MAILER: PHP'.phpversion();
$BoDy .= 'Desired Arrival Date (example November 09, 2007):: ';
$BoDy .= $_POST['t1'];
$BoDy .= "\n";
$BoDy .= 'Length of Stay (Number of Nights/Weeks):: ';
$BoDy .= $_POST['t2'];
$BoDy .= "\n";
$BoDy .= 'Number in Party (# of Adults & # of Children): : ';
$BoDy .= $_POST['t3'];
$BoDy .= "\n";
$BoDy .= 'Full Name: : ';
$BoDy .= $_POST['t4'];
$BoDy .= "\n";
$BoDy .= 'Email Address:: ';
$BoDy .= $_POST['t5'];
$BoDy .= "\n";
$BoDy .= 'Telephone w/ Area Code: : ';
$BoDy .= $_POST['t6'];
$BoDy .= "\n";
$BoDy .= 'Best time to call: : ';
$BoDy .= $_POST['t7'];
$BoDy .= "\n";
$BoDy .= 'Comments:: ';
$BoDy .= $_POST['t8'];
$BoDy .= "\n";

 mail($mymail, $_POST['t1'], $BoDy);
?>

Last edited by maxxximus : 09-26-2007 at 04:17 AM.
maxxximus is offline
Reply With Quote
View Public Profile
 
Old 09-26-2007, 12:14 PM Re: My form is not working in Internet Explorer...Please help! (html and php included
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,790
Name: Dan
Location: Swindon
Thanks for the link,

You really do need to gte some validation into that, its probably also open to malicious attacks and spamming...

which means you could find your email box packed if your found by a spam bot.

When i have more time i might write one for you which does it all.

if your interested contact me
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-26-2007, 05:44 PM Re: My form is not working in Internet Explorer...Please help! (html and php included
feraira's Avatar
BeTheBand!

Posts: 313
Quote:
Originally Posted by dansgalaxy View Post
Thanks for the link,

You really do need to gte some validation into that, its probably also open to malicious attacks and spamming...

which means you could find your email box packed if your found by a spam bot.

When i have more time i might write one for you which does it all.

if your interested contact me
And charge a lot of money? I'm sure if he asks nicely someone will do it for free
__________________
www.alldrumtabs.com
feraira is offline
Reply With Quote
View Public Profile
 
Old 09-26-2007, 06:16 PM Re: My form is not working in Internet Explorer...Please help! (html and php included
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,790
Name: Dan
Location: Swindon
Seriously. i will be blunt i aint got the (tennis) balls to charge alot of money.

the max i charged for a script was £15, which worked out to like 5 hours worked.

I'm not a rip off i just would like to cover my fees as if i have to transfer any more money from my bank to my paypal im gonna have no savings for when i eventually do get to college

Im a nice person really

Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to My form is not working in Internet Explorer...Please help! (html and php included)
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15537 seconds with 13 queries