Can someone tell me how to fix this form using the script below with this form action:
<form action="/cgi/gdform.cgi" method="post">
My Hosting company will allow the use of their gdform.cgi.
<!-- end contact form --> <?php mail( "admin@willametteweb.us", "Subject title here", "$Title $First_name $Second_name\n $Address\n $Telephone\n $Email\n $Message", "From: $Email"); require("http://www.willametteweb.us/thankyou.php"); ?><form method="post" action="<?=$_SERVER['pHP_SELF']?>"> Subject: <input name="subject"><br /> Your name: <input name="yourname"> Title: <input width="15px" name="title"><br /> Company name: <input name="compname"><br /> Phone#: <input name="phone"><br /> Best time to call: <input name="time"><br /> Message: <textarea name="message" cols="50" rows="5"></textarea><br /> Reason: <select size="1" type="text" name="reason"> <option>-Select- </option> <option value="Reason: Webhosting" type="text" name="reason">Webhosting</option> <option value="Reason: Webdesign" type="text" name="reason">Webdesign</option> <option value="Reason: Domain name registration" type="text" name="reason">Domain name registration</option> <option value="Reason: E-commerce" type="text" name="reason">E-commerce</option> <option value="Reason: General Information" type="text" name="reason">General Information</option> <option value="Reason: Banner Ad Designs" type="text" name="reason">Banner Ad Designs</option> <option value="Reason: Other" type="text" name="reason">Other</option> </select> <select size="1" type="text" name="reasoncon"> <option>-Select- </option> <option value="- information" type="text" name="reasoncon">Information</option> <option value="- information" type="text" name="reasoncon">Quote</option> <option value="- information" type="text" name="reasoncon">Feedback</option> <option value="- information" type="text" name="reasoncon">Other</option> </select><br /> Your em@il: <input name="youremail"><br /> <input type="submit" name="sendto" value="Send"> </form> <!-- end contact form -->
<!-- end contact form --> <?php
mail( "admin@willametteweb.us", "Subject title here", "$Title $First_name $Second_name\n
$Address\n $Telephone\n $Email\n $Message", "From: $Email");
require("http://www.willametteweb.us/thankyou.php"); ?><form method="post" action="<?=$_SERVER['pHP_SELF']?>"> Subject: <input name="subject"><br /> Your name: <input name="yourname"> Title: <input width="15px" name="title"><br /> Company name: <input name="compname"><br /> Phone#: <input name="phone"><br /> Best time to call: <input name="time"><br /> Message: <textarea name="message" cols="50" rows="5"></textarea><br /> Reason: <select size="1" type="text" name="reason"> <option>-Select- </option> <option value="Reason: Webhosting" type="text" name="reason">Webhosting</option> <option value="Reason: Webdesign" type="text" name="reason">Webdesign</option> <option value="Reason: Domain name registration" type="text" name="reason">Domain name registration</option> <option value="Reason: E-commerce" type="text" name="reason">E-commerce</option> <option value="Reason: General Information" type="text" name="reason">General Information</option> <option value="Reason: Banner Ad Designs" type="text" name="reason">Banner Ad Designs</option> <option value="Reason: Other" type="text" name="reason">Other</option> </select> <select size="1" type="text" name="reasoncon"> <option>-Select- </option> <option value="- information" type="text" name="reasoncon">Information</option> <option value="- information" type="text" name="reasoncon">Quote</option> <option value="- information" type="text" name="reasoncon">Feedback</option> <option value="- information" type="text" name="reasoncon">Other</option> </select><br /> Your em@il: <input name="youremail"><br />
<input type="submit" name="sendto" value="Send"> </form> <!-- end contact form -->
Thanks a lot.
You need to post this in one of the other forums. The coding critique is for critiquing code, hence the name.
My apologies! But, I thought that the contact form code that Isubmitted was, in fact, code? Perhaps the description of this category should be updated. Again, I apologize.
Well, if you wanted a critique of the code, that would be one thing. But you're looking for a fix. Perhaps you should read the guidlines
Again, My Apologies!