Jump to content

westmich

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

westmich's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Never mind guys, I figured it out! Thanks though.
  2. Hi All, I need some help, I have a contact form and inside this form there are some pull down menus. Now after you fill out the form you hit submit and the whole thing emails, right, well, not all of it will email the pull down options will not email. I have never really done a pull down menu with php, so if anyone can help me out here I would greatly appreciate it. Here is my php code for the form: [code]<?PHP if ($_POST['Firstname']!=""){ $to = "michelle@zenmanproductions.com"; $msg="First Name:        {$_POST['Firstname']}\n"; $msg.="Last Name:         {$_POST['Lastname']}\n"; $msg.="Company:             {$_POST['Company']}\n"; $msg.="Email Address:    {$_POST['email']}\n\n"; $msg.="Address 1:            {$_POST['Addone']}\n"; $msg.="Address 2:            {$_POST['Addtwo']}\n"; $msg.="City:                    {$_POST['City']}\n"; $msg.="State/Province:    {$_POST['State']}\n"; $msg.="Zip:                        {$_POST['Zip']}\n"; $msg.="Phone:                {$_POST['Phone']}\n"; $msg.="Company Type:\n";     if ($_POST['cotype0']!="") $msg.="Healthcare Provider    \n\n";     if ($_POST['cotype1']!="") $msg.="Revenue Cycle Consultant    \n\n";     if ($_POST['cotype2']!="") $msg.="Healthcare Financing    \n\n";     if ($_POST['cotype3']!="") $msg.="Other    \n\n";                  $msg.="Number of Beds:\n";     if ($_POST['bed0']!="") $msg.="Less than 100\n\n";     if ($_POST['bed1']!="") $msg.="100-250\n\n";     if ($_POST['bed2']!="") $msg.="251-500\n\n";     if ($_POST['bed3']!="") $msg.="500 or More\n\n"; $msg.="Comments/Questions:   {$_POST['Comments']}\n"; $subject="Contact Us"; $mailheaders="From:Healthcare Funding Solutions <.com>\n"; mail($to, $subject, $msg, "From:{$_POST['email']}\r\nReply-To: {$_POST['email']}\r\n"); } ?>[/code] And here is the drop down menu html code: [code]<select name="cotype" class="text" id="cotype">                         <option value="type0">Healthcare Provider</option>                         <option value="type1">Revenue Cycle Consultant</option>                         <option value="type2">Healthcare Financing</option>                         <option value="type3">Other</option>                       </select>                     </label></td>                   </tr>                   <tr>                     <td align="left" valign="top" class="text">Number of Beds </td>                     <td valign="top"><label>                       <select name="numberbeds" class="text" id="numberbeds">                         <option value="bed0">>100</option>                         <option value="bed1">100-250</option>                         <option value="bed2">251-300</option>                         <option value="bed3">300+</option>                       </select>[/code] I have been working on this for a while now and I am starting to go crazy over it, so please let me know what I am doing wrong. Thanks! [b]EDITED BY WILDTEEN88: PLEASE USE THE CODE TAGS RATHER THAN THE COLOUR TAGS WHEN POSTING CODE. TO USE THE CODE TAGS PASTE YOUR CODE THEN HIGHLIGHT IT PRESS THE [img src=\"http://www.phpfreaks.com/forums/style_images/1/folder_rte_images/code.gif\" border=\"0\" alt=\"IPB Image\" /] BUTTON. THANX[/b]
  3. Thanks for replying to me, you helped out a bit. But here is what I am trying to do with my pull down menu. I created the pull down with just the regular dreamweaver application button. What I want to happen is that when someone goes to this site that fill out the contact page and pick an option from the pull down and then when they hit submit it will email along with the rest of the info they filled out. Now, I can get all of the info to email but I have never put a pull down menu inside of php, so I was wondering how to go about that. Is it the same as a checkbox inside of php? I mean, is it the same as programming a check box inside of PHP?
  4. Hi, I have a question about PHP and drop down menus. Should I be using PHP for my drop down menus or should I be using java script? I have a whole contact form that is programmed in PHP, but I have never done a drop down menu with PHP, is this possible? If anyone knows of any great drop down menu tutorials in PHP I'd greatly appreciate them shouting it out to me. Thanks! :)
  5. Hi, I have an really simple question, except at the moment it seems really hard to me, I have a contact form, and when the user hits submit, I want the thankyou.html page to pop up. So after you fill out the contact form and hit the submit button, I can't seem to get the site to redirect to the thankyou.html page, is it in the action="" syntax that makes the site redirect to the thankyou.html page?
  6. Hi I need some help here, I am not sure I am even going about it correctly. I was given a file, that is an HTML table/form, and I was told to program it with PHP. It is basically a contact page, but it is really huge, and I have only programmed flash contact pages with php, I thought that an html contact page would be simple but I thought wrong. I need someone to get me started in the right direction I have been all over the internet looking for help so now I am submitting my files to anyone who can help me out! I am getting desperate here, please help me! Here is my PHP file: <? $to = "westboarder@msn.com"; $msg = "{$_POST['Name']}\n\n"; $msg .= "{$_POST['Message']}\n\n"; $msg .= "{$_POST['Company']}\n\n"; $msg .= "{$_POST['Title']}\n\n"; $msg .= "{$_POST['Phone']}\n\n"; $msg .= "{$_POST['Fax']}\n\n"; $msg .= "{$_POST['Address']}\n\n"; $msg .= "{$_POST['State/Province']}\n\n"; $msg .= "{$_POST['Country']}\n\n"; $msg .= "{$_POST['Zip']}\n\n"; $msg .= "{$_POST['email']}\n\n"; mail($to, $_POST['subject'], $msg, "From:{$_POST['email']}\r\nReply-To: {$_POST['email']}\r\n"); ?> And here is my html table/form (sorry, it is really long): <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } --> </style> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <link href="include/style.css" rel="stylesheet" type="text/css"> </head> <body onLoad="MM_preloadImages('images/nav/home_on.gif','images/nav/aboutus_on.gif','images/nav/ourprod_on.gif','images/nav/bell_on.gif','images/nav/eurocopter_on.gif','images/nav/md_helicopters_on.gif','images/nav/robinson_on.gif','images/nav/schweizer_on.gif','images/nav/sikorsky_on.gif','images/nav/downloads_on.gif','images/nav/submit_profile_on.gif','images/nav/contact_on.gif')"> <form name="emailform.php" method="post" action=""> <table width="770" height="650" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="770" height="120" align="left" valign="top"><table width="770" height="120" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="180" height="120" align="left" valign="top" bgcolor="A40910"><img src="images/shared/logo.gif" width="180" height="120"></td> <td width="590" height="120" align="left" valign="top" background="images/header/headerclouds.jpg">&nbsp;</td> </tr> </table></td> </tr> <tr> <td width="770" height="480" align="left" valign="top"><table width="770" height="530" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="180" height="480" align="left" valign="top" bgcolor="A40910"><table width="180" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="180" height="5" align="left" valign="top"><img src="images/shared/whitespacer.gif" width="180" height="5"></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/nav/home_on.gif',1)"><img src="images/nav/home_off.gif" name="Image4" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="about.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/nav/aboutus_on.gif',1)"><img src="images/nav/aboutus_off.gif" name="Image5" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="ourprod.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/nav/ourprod_on.gif',1)"><img src="images/nav/ourprod_off.gif" name="Image6" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><img src="images/nav/blanknav.gif" width="180" height="25"></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="bell.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/nav/bell_on.gif',1)"><img src="images/nav/bell_off.gif" name="Image7" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="eurocopter.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/nav/eurocopter_on.gif',1)"><img src="images/nav/eurocopter_off.gif" name="Image8" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="md_helicopters.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/nav/md_helicopters_on.gif',1)"><img src="images/nav/md_helicopters_off.gif" name="Image9" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="robinson.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/nav/robinson_on.gif',1)"><img src="images/nav/robinson_off.gif" name="Image10" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="schweizer.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/nav/schweizer_on.gif',1)"><img src="images/nav/schweizer_off.gif" name="Image11" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="sikorsky.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/nav/sikorsky_on.gif',1)"><img src="images/nav/sikorsky_off.gif" name="Image12" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><img src="images/nav/blanknav.gif" width="180" height="25"></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="downloads.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image14','','images/nav/downloads_on.gif',1)"><img src="images/nav/downloads_off.gif" name="Image14" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><img src="images/nav/request_for_quote_on.gif" width="180" height="25"></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="submit_profile.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image16','','images/nav/submit_profile_on.gif',1)"><img src="images/nav/submit_profile_off.gif" name="Image16" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="25" align="left" valign="top"><a href="contact.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','images/nav/contact_on.gif',1)"><img src="images/nav/contact_off.gif" name="Image17" width="180" height="25" border="0"></a></td> </tr> <tr> <td width="180" height="150" align="left" valign="top"><img src="images/nav/address.gif" width="180" height="150"></td> </tr> </table></td> <td width="590" height="480" align="left" valign="top"><table width="590" height="530" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="590" height="30" align="left" valign="top"><table width="590" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="590" height="7" align="left" valign="top" bgcolor="#A40910"><img src="images/spacer/red_1x1.gif" width="1" height="7"></td> </tr> <tr> <td width="590" height="23" align="left" valign="top" background="images/scrollingtext/placeholder.gif">&nbsp;</td> </tr> </table></td> </tr> <tr> <td width="590" height="500" align="left" valign="top"><table width="590" height="500" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="590" height="10" align="left" valign="top"><img src="images/spacer/white_1x1.gif" width="1" height="1"></td> </tr> <tr> <td width="590" height="490" align="left" valign="top"><table width="590" height="490" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="590" height="180" align="left" valign="top"><table width="590" height="180" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="295" height="180" align="left" valign="top"><table width="295" height="180" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="295" height="150" align="left" valign="top"><table width="295" height="150" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10" height="180" align="left" valign="top">&nbsp;</td> <td width="285" height="180" align="left" valign="top" class="mainText"><p class="redTextTitle"><strong>Request For Quote</strong></p> <p class="mainText"><br> <strong class="blackTextTitle">Competitive pricing, fast</strong></p> <p class="mainText">We would be pleased to provide you with a timely price quote for your helicopter replacement windows. Simply complete and submit this form, or call us at 1-817-246-4694. </p> <p class="mainText">&nbsp;</p> <p class="redTextTitle"><br> </p></td> </tr> </table></td> </tr> </table></td> <td width="295" height="180" align="left" valign="top" background="images/image_295x180/ourproducts.jpg">&nbsp;</td> </tr> </table></td> </tr> <tr> <td width="590" height="310" align="left" valign="top"><table width="590" height="310" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10" height="310" align="left" valign="top">&nbsp;</td> <td width="570" height="310" align="left" valign="top" class="mainText"><TABLE cellSpacing="2" cellPadding="2" width="100%" border="0"> <TBODY> <TR> <TD align="right"><strong>Date</strong></TD> <TD><INPUT size="30" name="Date"></TD> </TR> <TR> <TD align="right"><strong>Company</strong></TD> <TD><INPUT size="30" name="Company"></TD> </TR> <TR> <TD align="right"><strong>Contact</strong></TD> <TD><INPUT size="30" name="Contact"></TD> </TR> <TR> <TD align="right"><strong>Address</strong></TD> <TD><INPUT size="40" name="Address"></TD> </TR> <TR> <TD align="right"><strong>City</strong></TD> <TD><INPUT size="15" name="City"></TD> </TR> <TR> <TD align="right"><strong>State/Province</strong></TD> <TD><INPUT size="15" name="State/Province"></TD> </TR> <TR> <TD align="right"><strong>Country</strong></TD> <TD><INPUT size="15" name="Country"></TD> </TR> <TR> <TD align="right"><strong>Zip/Postal Code</strong></TD> <TD><INPUT size="6" name="Zip"></TD> </TR> <TR> <TD align="right"><strong>Phone</strong></TD> <TD><INPUT size="14" name="Phone"></TD> </TR> <TR> <TD align="right"><strong>Fax</strong></TD> <TD><INPUT size="14" name="Fax"></TD> </TR> <TR> <TD align="right"><strong>Email</strong></TD> <TD><INPUT name="email"></TD> </TR> </TBODY> </TABLE> <INPUT type="hidden" value="BEGIN_RFQ_PARTS" name="BEGIN_RFQ_PARTS"> <TABLE cellSpacing="4" cellPadding="1" width="100%" bgColor="#FFFFFF" border="0"> <TBODY> <TR> <TD align="middle"><strong>Part Number</strong></TD> <TD align="middle"><strong>Description</strong></TD> <TD align="middle"><strong>Qty</strong></TD> </TR> <TR> <TD align="middle"><INPUT name="prt_1"></TD> <TD align="middle">&nbsp;</TD> <TD align="middle"><INPUT size="5" name="qty_1"></TD> </TR> <TR> <TD align="middle"><INPUT name="prt_2"></TD> <TD align="middle"><INPUT size="30" name="des_2"></TD> <TD align="middle"><INPUT size="5" name="qty_2"></TD> </TR> <TR> <TD align="middle"><INPUT name="prt_3"></TD> <TD align="middle"><INPUT size="30" name="des_3"></TD> <TD align="middle"><INPUT size="5" name="qty_3"></TD> </TR> <TR> <TD align="middle"><INPUT name="prt_4"></TD> <TD align="middle"><INPUT size="30" name="des_4"></TD> <TD align="middle"><INPUT size="5" name="qty_4"></TD> </TR> </TBODY> </TABLE> <input size="30" name="des_1"> <TABLE cellSpacing="2" cellPadding="5" width="100%" border="0"> <TBODY> <TR> <TD align="middle"><INPUT name="reset" type="reset" value="reset form"> <INPUT name="submit" type="submit" value=" send request "></TD> </TR> </TBODY> </TABLE> <p>&nbsp;</p> </td> <td width="10" height="310" align="left" valign="top">&nbsp;</td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> </form> </body> </html> This is my first time posting here so if I did things completely wrong I am very sorry, I'll do better next time! Thanks to anyone willing to help me out here.
×
×
  • 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.