CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
Accepts forum posts

 



mister1337
New User

Feb 10, 2009, 1:12 PM

Post #1 of 4 (2143 views)
Accepts forum posts Can't Post

I have written an HTML document that is stored on a server that is a form to submit. I need to figure out how to write a perl script that accepts the input to the forum by way of a Query_String.





<html>
<title> Check</title>
<body>
<table border="0" Cellpadding=4 align="center"><td></td><td><font color="orange" size="+3"> Durn Good Recipie</font>
</td>
<tr>
<!--Had to call the image here I named it food.bmp--!>
<td ><img src="food.bmp"></td>
<td><table border="4" Bordercolor="white" cellpadding="4"><tr><td><pre>
OVER 9000 KALORIEZ!!!!!!!!!!!!!!
vegeta WHAT DOES THE SCOUTER SAY ABOUT
THOZE KALORIEZ??????
OVER 9000!!!!!!!!!!!!!! </pre>
</td></tr> </table>
</table><center>
<!-- Made a new table here to keep things in line--!>
<table border="0">
<td>How well did you did with this recipe?</td>
<tr>
<td align=right>
<br>
<!-- tells the form where to go--!>
<form name="post" action=<!--THis is where I need to put the query string for the perl script--!>
method="post">
Your Name:
<input type="Text" name="name">
<br>
<br>
Your Phone number:
<input type="text" name="phone">
<br>
<br>
Overall rating of this recipe:
<input type="text" name="rating">
<br>
<tr>
<td>
Should we put you on our mailing list?
<input type="radio" name="mailing" value="yes">Yes
<input type="radio" name="mailing" value"no">No
<br>
Sign me up for the magazine
<input type="checkbox" name="mag">
</td>
<tr>
<td>
<input type="submit" value="Submit"></td>
</table>
</form>
<hr>
</body>
</html>


FishMonger
Veteran / Moderator

Feb 10, 2009, 1:39 PM

Post #2 of 4 (2137 views)
Re: [mister1337] Accepts forum posts [In reply to] Can't Post


Quote
<form name="post" action=<!--THis is where I need to put the query string for the perl script--!>


No, that's where you put the 'path/to/script.pl'

The CGI module is the De facto standard module used for Perl cgi scripts.

http://search.cpan.org/~lds/CGI.pm-3.42/CGI.pm


mister1337
New User

Feb 10, 2009, 1:50 PM

Post #3 of 4 (2134 views)
Re: [FishMonger] Accepts forum posts [In reply to] Can't Post

You're right. I put the wrong thing. This where the name of the script that I need goes. I need a script that will accept input from this forum.


FishMonger
Veteran / Moderator

Feb 10, 2009, 3:10 PM

Post #4 of 4 (2130 views)
Re: [mister1337] Accepts forum posts [In reply to] Can't Post

This looks like a homework assignment.

The CGI documentation at the link I posted has a number of examples.

Have you read that documentation?

Have you tried to write the script?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives