troubleshooting Question

How to you send an argument to a perl script from the html?

Avatar of oualide
oualide asked on
Scripting Languages
10 Comments2 Solutions473 ViewsLast Modified:
Hi

I have an html file that has two text boxex and two buttons:
<form method="post">
<p><textarea rows="10" name="text" cols="80"></textarea></p>
<p><input type="submit" value="Go!" name="one"></p>
</form>

<form method="post">
<p><textarea rows="10" name="text" cols="80"></textarea></p>
<p><input type="submit" value="Go!" name="two"></p>
</form>

and I have a perl scripts that has two functions (one,two) in it. If key "one" is pressed the function one should be invoked and if key "two" is pressed function two is invoked.

How does the script know which function to execute? in other word what to send as argument to the script to indicate that function one
Thanks

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros