Getting IE/Firefox to run perl when a form/button is clicked

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Getting IE/Firefox to run perl when a form/button is clicked

Postby bogglemaster89 » 11. March 2010 00:58

Hello,

i am aware that this may have been asked before; however I could not find it; most of them seemed to be about installation.......anyway!

I'm trying to set-up IE/Firefox to run perl when a html form or button is pressed rather than try and make me download it! ive done the following
Code: Select all
<p> Please login with your Username and Password Below:</p>
<p>Username: </p>
<FORM ACTION="newexperiment.cgi" METHOD=POST>
<INPUT TYPE="text" NAME="username" VALUE="username">
<p>password: </p>
<INPUT TYPE="password" NAME="password" VALUE="password">
<INPUT TYPE="submit" VALUE="login">
<INPUT TYPE="reset" VALUE="reset">
</form>
<a href="login.cgi?key="username"&key2="password">click here</a>


neither work....how can I configure xampp so it works? Im using Vista by the way!

bogglemaster89
bogglemaster89
 
Posts: 1
Joined: 10. March 2010 19:35

Re: Getting IE/Firefox to run perl when a form/button is clicked

Postby MC10 » 11. March 2010 06:23

Are you running your programs through http://localhost/? (Your files must be in \xampp\htdocs.)

Aside from that, this line is incorrect:

Code: Select all
<a href="login.cgi?key="username"&key2="password">click here</a>


The quotes mess up the link. Instead do:

Code: Select all
<a href='login.cgi?key="username"&key2="password"'>click here</a>


Another note: your code is not going to validate through the W3C validator (http://validator.w3.org/) without major changes.
MC10
 
Posts: 148
Joined: 20. February 2010 20:13


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests

cron