Hi,
Once again I'm writing a script that uses lots of subroutines like explore.cgi?mode=forums. Here's half of my code.
if ($query =~m/warehouse/) {
&explore(qq
~<form
action="explore.cgi?&mode=visit"
method="POST">
<p><font size="2" face="Arial"><strong>IK: </strong>Visit
Warehouse No:<br>
</font><select name="number" size="1">
<option value="1">1</option>
#rest of my HTML code
~, "Warehouses"
SECOND PART OF MY SCRIPT
if ($query =~m/forums/) {
&explore(qq~
form action="msgpost.cgi" method="POST">
#more HTML codes then...
</center></div><p align="center"><input type="submit"
value="Post"> <input type="reset" value="Clear"></p>
~,"Forums"
PROBLEM: As you can see now there's 2 parts of forms with 2 urls. One from the first subroutine, which is explore.cgi?mode=visit and the other from the subroutine, "forums" which is msgpost.cgi. Somehow when I go to the forums section and click on the "Post" to post a message, perl is redirecting to explore.cgi?mode=warehouse instead of msgpost.cgi. I think perl got confused or something within the 2 subroutines but can anyone help me fix this? Thanks for your time.
-Aaron
Once again I'm writing a script that uses lots of subroutines like explore.cgi?mode=forums. Here's half of my code.
if ($query =~m/warehouse/) {
&explore(qq
~<form
action="explore.cgi?&mode=visit"
method="POST">
<p><font size="2" face="Arial"><strong>IK: </strong>Visit
Warehouse No:<br>
</font><select name="number" size="1">
<option value="1">1</option>
#rest of my HTML code
~, "Warehouses"
SECOND PART OF MY SCRIPT
if ($query =~m/forums/) {
&explore(qq~
form action="msgpost.cgi" method="POST">
#more HTML codes then...
</center></div><p align="center"><input type="submit"
value="Post"> <input type="reset" value="Clear"></p>
~,"Forums"
PROBLEM: As you can see now there's 2 parts of forms with 2 urls. One from the first subroutine, which is explore.cgi?mode=visit and the other from the subroutine, "forums" which is msgpost.cgi. Somehow when I go to the forums section and click on the "Post" to post a message, perl is redirecting to explore.cgi?mode=warehouse instead of msgpost.cgi. I think perl got confused or something within the 2 subroutines but can anyone help me fix this? Thanks for your time.
-Aaron