![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pulling Input from HTML into Shell | mosammey | Shell Programming and Scripting | 1 | 02-17-2008 10:02 PM |
| Using Perl to add hyperlink to html files | Raynon | Shell Programming and Scripting | 17 | 11-01-2007 05:03 AM |
| HTML parsing by PERL | avik1983 | Shell Programming and Scripting | 3 | 02-23-2007 09:25 AM |
| perl and html | marcpascual | Shell Programming and Scripting | 8 | 09-21-2005 07:47 PM |
| Passing FORM(HTML) variable to ksh | douknownam | Shell Programming and Scripting | 1 | 02-25-2005 04:50 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Perl: Variable input via HTML
I am completely new to perl and am just going over the tutorials right now. What I am trying to attempt is to take the input from the HTML (in a form) and use those variables in a perl script. I've looked everywhere for a simple example on how to do this and cannot find it or do not understand what they mean. Here is what I have below:
#!/bin/perl print "Content-type: text/html\n\n"; print <<ENDHTML; <HTML> <HEAD> <TITLE>CGI Test</TITLE> </HEAD> <BODY> <FORM METHOD=POST ACTION="../cgi-bin/mycgi.pl"> name: <INPUT TYPE=TEXT NAME="realname"><BR> email: <INPUT TYPE=TEXT NAME="email"><BR> <INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> ENDHTML print "My name is: $realname\n"; print "My email is: $email\n"; Thanks in advance for any suggestions. |
| Bookmarks |
| Tags |
| regex, regular expressions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|