codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  pls help me with this..  sanju_gates at 08:09 on Monday, October 22, 2007
 

pls help me.i want to get input from user in one perl file and want to
get those inputs in another

perl file.here is my code and im not able to get those inputs.kindly
help me.where im wromg?




this is one.pl


#!/usr/bin/perl
use CGI qw/:standard/;

# Print the MIME header before doing anything else:
print "Content-type: text/html\n\n";


print '<html><body><form action=http://192.168.10.2/cgi-bin/perl/
two.pl method= post>';



# Prints example HTML form with signature in a <table>
print<<END_TEXT;
<table>
<tr>
<td><b>Address line 1:</b></td><td><input type="text"
name="address1"></td>
<tr>
<td><b>Address line 2:</b></td><td><input type="text"
name="address2"></td>
<tr>
<td><b>City:</b></td><td><input type="text" name="city"></td>
<tr>
<td><b>Prov:</b></td><td><input type="text" name="prov"></td>
<tr>
<td><b>Postal:</b></td><td><input type="text" name="postal"></td>
<tr><td colspan="2" align="center">
<input type="hidden" name="userid" value="$userid">
<input type="hidden" name="credit_ok" value="$credit_ok">
<input type="hidden" name="form_expires" value="$form_expires">
<input type="submit" name="chaddr" value="Change address" >
</td></tr>
</table>
</form>
END_TEXT
}

two.pl

#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!$city $address1</
H2>";
#print param('city');
print $userid;
print "</BODY></HTML>";









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007