Jump to content

monk275

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

monk275's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://www.caravanlogistics.ca/ See the buttons on the left. After you select a sub category and take your mouse off the sub category it would be nice if the subcategory disapeared. I think that this code is a Macromedia Dreamweaver template and all the info can be easily seen if you "view source". How do I do that?
  2. The radio buttons don't come back to me in the e mail. I have tried a couple of things that I thought would work but none of them did. Here is the form http://www.caravanlogistics.ca/getrates.html Here is the form from this page: <form action="contact2.php" method="post" name="form1"> <div align="right"> <table width="306" height="365" border="0"> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Company Name: </td> <td width="200" align="left"><input type="text" name="CompName" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Contact:</td> <td width="200" align="left"><input type="text" name="Contact" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Email:</td> <td width="200" align="left"><input type="text" name="Email" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Phone:</td> <td width="200" align="left"><input type="text" name="Phone" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Fax:</td> <td width="200" align="left"><input type="text" name="Fax" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Original City: </td> <td width="200" align="left"><input type="text" name="OrigCity" /></td> </tr> <tr> <td width="100" align="right" nowrap="nowrap" bgcolor="#E9E9E9">Destination City: </td> <td width="200" align="left"><input type="text" name="DestCity" /></td> </tr> <tr> <td width="100" align="right" valign="top" nowrap="nowrap" bgcolor="#E9E9E9">Equipment Type: </td> <td width="200" align="left"><p> <label></label> <label></label> <br /> <label></label> <label> <input type="radio" name="Type" value="Dry" /> Dry</label> <br /> <label> <input type="radio" name="Type" value="Temperature Controlled" /> Temperature Controlled</label> <br /> <label> <input type="radio" name="Type" value="Logistics" /> Logistics</label> <br /> <label> <input type="radio" name="Type" value="Warehouse" /> Warehouse</label> <br /> <br /> <br /> </p></td> </tr> <tr> <td width="100" align="right" valign="top" nowrap="nowrap" bgcolor="#E9E9E9"><div align="right">Comments:</div></td> <td width="200" align="left"><p> <textarea name="Comments" cols="30" rows="6" id="Comments"></textarea> </p> <p> </p></td> </tr> </table> </div> </label> <div align="center"> <input type="submit" name="Submit" value="Submit Info" /> <input type="reset" name="Submit2" value="Clear Form" /> </div> </form> Here is the contact2.php page <?php $to = "monk@olaroks.com, ola@caravanlogistics.ca" ; $from = $_REQUEST['Email'] ; $name = $_REQUEST['CompName'] ; $headers = "From: $from"; $subject = "Rate Request"; $fields = array(); $fields{"CompName"} = "CompName"; $fields{"Contact"} = "Contact"; $fields{"Email"} = "Email"; $fields{"Phone"} = "Phone"; $fields{"Fax"} = "Fax"; $fields{"OrigCity"} = "OrigCity"; $fields{"DestCity"} = "DestCity"; $fields{"Comments"} = "Comments"; $body = "Rate Request from caravanlogistics.com:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); } $headers2 = "From: noreply@YourCompany.com"; $subject2 = "Thank you for contacting us"; $autoreply = "Thank you for contacting us. Somebody will get back to you as soon as possible, usualy within 48 hours. If you have any more questions, please consult our website at www.caravanlogistics.com"; if($from == '') {print "You have not entered an email, please go back and try again";} else { if($name == '') {print "You have not entered a name, please go back and try again";} else { $send = mail($to, $subject, $body, $headers); $send2 = mail($from, $subject2, $autoreply, $headers2); if($send) {header( "Location: thankyou.html" );} else {print "We encountered an error sending your mail, please notify webmaster@caravanlogistics.ca"; } } } ?> How do I get the radio buttons to work?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.