hi everyone,
i have setup form in cs5 have input sent me script. works fine in ie 8, firefox 12.0, safari 5.1.2 pc, not email when using chrome.
i have form page working on website page not linked yet, testing still.
i including form page meetfrm2 , script sendresults
if has ideas appreciated.
thanks in advance,
dloj
meetfrm2 page:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>meeting change form</title>
<link href="styles/daone.css" rel="stylesheet" type="text/css" />
<script src="spryassets/sprymenubar.js" type="text/javascript"></script>
<link href="spryassets/sprymenubarhorizontal.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
/* give menu bar width , set margins "auto"
* browser centering.
*/
ul.menubarhorizontal {
width: 50.2em;
margin: auto;
}
/* center text within menu item links.
*/
ul.menubarhorizontal {
text-align: center;
background-color:#fc9;
}
/* set the alignment left any
* menu item links in sub menu.
*/
ul.menubarhorizontal ul {
text-align: left;
}
-->
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</style>
</head>
<body >
<div id="container">
<div id="banner"><img src="images/newheadercb2.png" alt="socalda" width="1101" height="180" /></div>
<div id="main_image">
<?php include("includes/menu.php"); ?>
</div><br /><br /><br />
<div id="centerb_col" style="font-size:14px"><h2>online meeting change form</h2>
<p align="center">please fill-out form below expedite meeting changes.</p>
<h2>your information</h2>
<form action="scripts/sendresults.php" method="post" name="form1" id="form1">
<table class="myforms">
<tr><td>your name</td><td><input name="your name" type="text" id="yname_meet" size="50" /></td></tr>
<tr><td>your email</td><td><input name="your email address" type="text" id="email_meet" size="50" /></td></tr>
<tr><td>your phone number</td><td><input name="your phone number" type="text" id="phone_meet" size="15" maxlength="12" /></td></tr>
</table>
<p>please check correct radio button below signify type of information submitting. <br /> new meeting, changing information current meeting, <br />or information meeting closing.
<p>
<label>new meeting
<input type="radio" name="radio" id="new_meet" value="new_meet" />
</label>
<label>change meeting information
<input type="radio" name="radio" id="change_meet" value="change_meet" />
</label>
<label>closing meeting
<input type="radio" name="radio" id="closing_meet" value="closing_meet" />
</label>
<br />
<h2>meeting information</h2>
<table class="myforms">
<tr><td>meeting name</td><td><input name="meeting name" type="text" id="name_meet" size="50" /></td></tr>
<tr><td>gso id</td><td><input name="gso id" type="text" id="gso_meet" size="10" /></td></tr>
<tr><td>meeting contact</td><td><input name="meeting contact" type="text" id="contact_meet" size="50" /></td></tr>
<tr><td>meeting contact phone</td><td><input name="meeting contact phone" type="text" id="cphone_meet" size="12" /></td></tr>
<tr><td>meeting address</td><td><input name="meeting address" type="text" id="address_meet" size="50" /></td></tr>
<tr><td>meeting city</td><td><input name="meeting city" type="text" id="city_meet" size="50" /></td></tr>
<tr><td>meeting zip</td><td><input name="meeting zip" type="text" id="zip_meet" size="10" /></td></tr>
<tr><td>meeting room</td><td><input name="meeting room" type="text" id="room_meet" size="50" /></td></tr>
<tr><td>meeting focus</td><td><input name="meeting focus" type="text" id="focus_meet" size="50" /></td></tr>
<tr><td>meeting directions</td><td><textarea name="meeting directions" cols="" rows="" id="directions_meet"></textarea></td></tr>
</table>
<br />
<input name="submit" type="submit" id="submit_meet" value="submit" />
</form>
<br /><br />
</p>
<hr />
</div>
</div>
</body>
</html>
the script sendresults.php:
<?php
//--------------------------set these paramaters--------------------------
// subject of email sent you.
$subject = 'results meeting change form';
// email address. form information sent.
$emailadd = 'webadmin@socalda.org';
$emailadd2 = 'dloj@roadrunner.com';
// redirect after form processed.
$url = 'http://www.socalda.org/confirmation.php';
// makes fields required. if set '1' no field can not empty. if set '0' or fields can empty.
$req = '0';
// --------------------------do not edit below line--------------------------
$text = "results form:\n\n";
$space = ' ';
$line = '
';
foreach ($_post $key => $value)
{
if ($req == '1')
{
if ($value == '')
{echo "$key empty";die;}
}
$j = strlen($key);
if ($j >= 50)
{echo "name of form element $key cannot longer 50 characters";die;}
$j = 50 - $j;
for ($i = 1; $i <= $j; $i++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
}
mail($emailadd, $subject, $text, 'from: '.$emailadd.'');
mail($emailadd2, $subject, $text, 'from:'.$emailadd2.'');
echo '<meta http-equiv=refresh content="0; url='.$url.'">';
?>
chrome has had issues autofill, try disabling it.
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment