Click to See Complete Forum and Search --> : form action="/cgi/gdform.cgi" method="post"


jallard
12-01-2003, 07:19 PM
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 -->

Thanks a lot.

LordShryku
12-01-2003, 07:24 PM
You need to post this in one of the other forums. The coding critique is for critiquing code, hence the name.

jallard
12-01-2003, 07:35 PM
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.

LordShryku
12-01-2003, 07:58 PM
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 (http://www.phpbuilder.com/board/showthread.php?s=&threadid=10256263)

jallard
12-01-2003, 08:03 PM
Again, My Apologies!