To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > Code Critique

Code Critique Having someone critique your code is always a great way to hone the skills. Stop in and post your code to see what your peers may have done differently.

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-01-2003, 07:19 PM   #1
jallard
Member
 
Join Date: Oct 2003
Posts: 43
form action="/cgi/gdform.cgi" method="post"

Can someone tell me how to fix this form using the script below with this form action:
Quote:
<form action="/cgi/gdform.cgi" method="post">
My Hosting company will allow the use of their gdform.cgi.

Quote:
<!-- 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.
jallard is offline   Reply With Quote
Old 12-01-2003, 07:24 PM   #2
LordShryku
kung foo code monkey
 
LordShryku's Avatar
 
Join Date: Aug 2002
Location: Occupational Hypnotherapy
Posts: 7,473
You need to post this in one of the other forums. The coding critique is for critiquing code, hence the name.
LordShryku is offline   Reply With Quote
Old 12-01-2003, 07:35 PM   #3
jallard
Member
 
Join Date: Oct 2003
Posts: 43
My apologies

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.
jallard is offline   Reply With Quote
Old 12-01-2003, 07:58 PM   #4
LordShryku
kung foo code monkey
 
LordShryku's Avatar
 
Join Date: Aug 2002
Location: Occupational Hypnotherapy
Posts: 7,473
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
LordShryku is offline   Reply With Quote
Old 12-01-2003, 08:03 PM   #5
jallard
Member
 
Join Date: Oct 2003
Posts: 43
Again, My Apologies!

Again, My Apologies!
jallard is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:44 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.