oki doki everyone!! (is it me or has andybo been the helpfullest person on tek-tips since ever)<br><br>i am trying to learn to CGI script, using perl. (cos if i was using anything else, activeperl wouldnt work now would it )<br><br>i got my HTML:<br>------------------------------------------------------------<br><HTML><br><TITLE> -- Name CGI script -- </TITLE><br><br><BODY> <br><P> Welcome to my name CGI script. </P><br><P> Please Enter your name and other details in the prompts below, click submit when you have entered your details, or reset to clear. </P><br><br><FORM METHOD=POST ACTION="details.cgi"><br><PRE><br>firstname <INPUT TYPE="text" NAME="fname" MAXLENGTH=15 SIZE=15><br>surname <INPUT TYPE="text" NAME="sname" MAXLENGTH=15 SIZE=15><br>email add <INPUT TYPE="text" NAME="email" MAXLENGTH=35 SIZE=35><br><INPUT TYPE="submit" VALUE="Send Mail"><br><INPUT TYPE="reset" VALUE="Clear Details"<br></PRE><br></FORM><br></BODY><br></HTML><br><br>============================================================<br><br>and her's my Perl code:<br><br>------------------------------------------------------------<br><br>read(STDIN,$temp,$ENV{'CONSTANT_LENGTH'});<br>@pairs=split(/&/,$temp);<br>foreach $item(@pairs)<br>{<br> ($key,$constant)=split(/=/,$item,2);<br> $content=~tr/+/ /;<br> $content=~s/%(..)/pack("c",hex($1))/ge;<br> $fields{$key}=$content;<br>}<br><br>print "Content-type: text/html\n\n";<br>print "<HTML>\n;<br>print "<BODY BGCOLOR=#FFFFFF>\n";<br>print "<CENTER>\n";<br>print "Thank you <BR>\n";<br>print "$fields{fname} $fields{lname}</BR>";<br>print "I will write<BR>\n";<br>print "you at <BR>\n";<br>print "</CENTRE>\n";<br>print "</BODY></HTML>";<br><br>============================================================<br><br>now, as i said before, here are the stats:<br> <font color=red>o</font> Windows NT Workstation<br> <font color=red>o</font> Active Perl<br> <font color=red>o</font> I'm thick<br><br>but i have a real big probz. how can i compile a .pl script into a cgi script, <b>without</b> it trying to download it all the time?<br><br>Please help, like i said, i'm just starting up on this whole cgi thingy wotsit so it'll probably sound <i>really</i> silly. <br><br>Thanks to everyone who replies, and those who look at and think i'm insane, and decide not to answer me.<br><br><br>Many thanks again. Karl. <p> Karl<br><a href=mailto:mc_karl@yahoo.com>mc_karl@yahoo.com</a><br><a href= > </a><br> ~ ~ ~ ~<br>
K A R L<br>
~ ~ ~ ~
K A R L<br>
~ ~ ~ ~