tripwater
07-21-2003, 04:24 PM
I have a problem...I am using two images (buttons) . One is a "Submit to Testing" the other says "Complete".
Ok now I am using them as input type=image
to post to the next page. I added names and values to these buttons so when you get to the ohter page, The code can tell what to do based on the button pressed. I have other checkboxes on the page with these images and this is why I am using the submit form instead of query strings.
Everything works fine in Mozilla. All of my post vars are passed over and all is fine.
However IE does not recognize the post var of these buttons and therefore not getting into my conditional statement to set other vars.
Here's my code for the buttons:
<form name=\"testcomp\" method=\"post\" action=\"../view/completed.php\">
<table width=700>
<tr>
<td>
<input type=hidden name=id value=\"".$HTTP_SESSION_VARS["idtask"]."\">
<input type=image src=../images/totesting.gif name=totest value=test border=0>
</td>
<td>
Make Me the Tester <input type=checkbox name=metester>
$keep
</td>
<td>
<input type=image src=../images/completed.gif name=comp value=complete border=0>
</td>
</tr>
</table>
</form>
///********************************************
here is the code on the submit page:
if (!empty($HTTP_POST_VARS["comp"]) || @mysql_num_rows($result) <> 0)
$testpool = 2; //if task is completed and the developer knows it does not need to be tested (testingcomp == true).
// if the task is not a recurring task we can send it to testing.
elseif (!empty($HTTP_POST_VARS["totest"]) && @mysql_num_rows($result) == 0)
$testpool = 1; //if task is completed by developer it goes to testing.
If I echo the post vars of the images they echo in Mozilla showing me which button was pressed. IE does nothing.
Any suggestions? Thank you for any help.
Ok now I am using them as input type=image
to post to the next page. I added names and values to these buttons so when you get to the ohter page, The code can tell what to do based on the button pressed. I have other checkboxes on the page with these images and this is why I am using the submit form instead of query strings.
Everything works fine in Mozilla. All of my post vars are passed over and all is fine.
However IE does not recognize the post var of these buttons and therefore not getting into my conditional statement to set other vars.
Here's my code for the buttons:
<form name=\"testcomp\" method=\"post\" action=\"../view/completed.php\">
<table width=700>
<tr>
<td>
<input type=hidden name=id value=\"".$HTTP_SESSION_VARS["idtask"]."\">
<input type=image src=../images/totesting.gif name=totest value=test border=0>
</td>
<td>
Make Me the Tester <input type=checkbox name=metester>
$keep
</td>
<td>
<input type=image src=../images/completed.gif name=comp value=complete border=0>
</td>
</tr>
</table>
</form>
///********************************************
here is the code on the submit page:
if (!empty($HTTP_POST_VARS["comp"]) || @mysql_num_rows($result) <> 0)
$testpool = 2; //if task is completed and the developer knows it does not need to be tested (testingcomp == true).
// if the task is not a recurring task we can send it to testing.
elseif (!empty($HTTP_POST_VARS["totest"]) && @mysql_num_rows($result) == 0)
$testpool = 1; //if task is completed by developer it goes to testing.
If I echo the post vars of the images they echo in Mozilla showing me which button was pressed. IE does nothing.
Any suggestions? Thank you for any help.