PDA

View Full Version : creating forms



razorsharp
04-24-2007, 06:57 PM
Hi,
I'm trying to create a simple form for my website. I have the form made, it consists of the numbers 1-5 in a radio format. I am a little confused on the cgi script for where to send it. I am using FTP and created a folder called mycgi.pl under cgi and put the page with the form in it. Is it enough to simpily do this? What do I need to put in the mycgi.pl folder? I know this is supposed to send the info to the server and have it returned to me but so far it's not working. Most likely due to ignorance. This is my form.

<form name="comicvalues" action="http://www.razorsharpcomics.com/cgi-bin/mycgi.pl" method="POST">
<input type="radio" name="comicvalue" value="1">1<br>
<input type="radio" name="comicvalue" value="2">2<br>
<input type="radio" name="comicvalue" value="3">3<br>
<input type="radio" name="comicvalue" value="4">4<br>
<input type="radio" name="comicvalue" value="5">5<br>
<input type="submit" value="send"></form>
<a href="http://www.razorsharpcomics.com/index.html/hmpg_layout.htm">Home
</table>

sjlplat
04-24-2007, 10:50 PM
The form should be placed in the body of the page you want it to be displayed on. The form then calls an external perl script to send the form data.

I've got a php-based form mailer available for download on my website. You can edit the form to send the data you want. Very easy to use and install. If you'd like to give that a try, you can find it at http://www.myphpscripts.net/scripts.php