/    Sign up×
Community /Pin to ProfileBookmark

Hi all,

I am using two radio buttons in one page. It seems one btton is not working. When I chose it and its value didn’t show in the URL bar.

Any idea what may cause the problem?

please see the following code I used.

<TR>
<TD valign = top rowspan= 2>
<INPUT TYPE=”radio” NAME=”CMD” VALUE=”COMMENT”
<?php if ($gszCommand == “COMMENT”) echo “CHECKED”;?>>

</TD>
<TD><IMG SRC=”images/icon_comment.gif” WIDTH=”25″ HEIGHT=”25″></TD>
<TD align = left> <font FACE=’Georgia’ color = blue size = 3> Add a Comment: </font> Click a point on
</TD>
</TR>

<TR>
<td> </td>
<td>the map and add new comment there. </td>
</TR>

<TR>
<TD> <br> </TD>
</TR>

<TR>
<TD valign = top rowspan= 2>
<INPUT TYPE=”radio” NAME=”CMD” VALUE=”QUERY_POINT”
<?php if ($gszCommand == “QUERY_POINT”) echo “CHECKED”;?>>

</TD>
<TD><IMG SRC=”images/icon_info.gif” WIDTH=”25″ HEIGHT=”25″></TD>
<TD align = left> <font FACE=’Georgia’ color = blue size = 3> Query: </font> Click on a building or other
</TD>
</TR>

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@the_treeMar 13.2006 — We'd need to see more code, everything from the opening form tag to the closing one, and any scripts that might be interfering.
Copy linkTweet thisAlerts:
@Jonathan11authorMar 13.2006 — Thanks for your quick reply. Here is the form code.

<FORM METHOD=GET NAME="myform">

<?php if (NewCommentAdd()) {
printf (" <Table>
<TR>
<TD VALIGN='TOP' ALIGN='CENTER'>
<TABLE CELLPADDING='2' CELLSPACING='0'>
<TR>
<p align= left>Please add your comments here: <br>
<textarea name=newComment row =3 cols = 40 maxlength=100 onkeyup='return ismaxlength(this)' STYLE='font-family:sans-serif; font-size:small;
font-style:italic'></textarea> </p>
<p Align = left><INPUT TYPE='submit' NAME="AddComment" WIDTH='84' HEIGHT='27' Value = Submit> <INPUT align =left TYPE='submit' NAME="Cancel" WIDTH='84' HEIGHT='27' Value = Cancel> </p>

</TR>
</TABLE>
</TD>
</TR>
</Table>");
}

?>

<!-- ask user whether he want to erase the selction -->
<?php if (DeleteComment()) {
printf (" <Table>
<TR>
<TD VALIGN='TOP' ALIGN='CENTER'>
<TABLE CELLPADDING='2' CELLSPACING='0'>
<TR>
<p><font face = 'sans-serif' size='5' color='red'>
Do you really want to erase the selected comment point?</font></p>
<p align = left><input type=submit size= 7 name=EraseYes value= 'Yes' STYLE='font-family:sans-serif; font-size:large;
font-style:italic; background:#ff0 none; color:#000; width:5em'>
<INPUT TYPE='submit' BORDER='0' NAME="EraseNo" VALUE='No' STYLE='font-family:sans-serif; font-size:large;
font-style:italic; background:#ff0 none; color:#000; width:5em'>
</p>
</TR>
</TABLE>
</TD>
</TR>
</Table>");
}
?>

<!-- -->

<TABLE BORDER="0" CELLSPACING="5" CELLPADDING="0">

<TR>

<TD VALIGN="TOP"> <!-- tool box & info box & resize window -->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">

<TR>
<TD> </TD>
<TD> </TD>
<TD>
<font FACE="Arial, Helvetica, sans-serif" color = red size = 4> System Tools </font>

</TD>
</TR>


<TR>
<td> <br> </td>
</TR>

<TR>
<TD valign = top rowspan= 2>
<INPUT TYPE="radio" NAME="CMD" VALUE="COMMENT"
<?php if ($gszCommand == "COMMENT") echo "CHECKED";?>>

</TD>
<TD><IMG SRC="images/icon_comment.gif" WIDTH="25" HEIGHT="25"></TD>
<TD align = left> <font FACE='Georgia' color = blue size = 3> Add a Comment: </font> Click a point on
</TD>
</TR>

<TR>
<td> </td>
<td>the map and add new comment there. </td>
</TR>

<TR>
<TD> <br> </TD>
</TR>

<TR>
<TD valign = top rowspan= 2>
<INPUT TYPE="radio" NAME="CMD" VALUE="QUERY_POINT"
<?php if ($gszCommand == "QUERY_POINT") echo "CHECKED";?>>

</TD>
<TD><IMG SRC="images/icon_info.gif" WIDTH="25" HEIGHT="25"></TD>
<TD align = left> <font FACE='Georgia' color = blue size = 3> Query: </font> Click on a building or other
</TD>
</TR>

<TR>
<td> </td>
<td> feature for information. </td>
</TR>




<TR>
<td> <br> </td>
</TR>

<TR>
<td> <br> </td>
</TR>

<TR>
<TD colspan= 3>
<! information box->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD><IMG SRC="images/corner_TL_LB.jpg" WIDTH="4" HEIGHT="4"></TD>
<TD BGCOLOR="#E2EFF5"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD><IMG SRC="images/corner_TR_LB.jpg" WIDTH="4" HEIGHT="4"></TD>
</TR>

<TR ALIGN="CENTER">
<TD BGCOLOR="#E2EFF5">&nbsp;</TD>
<TD BGCOLOR="#E2EFF5"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="3"><B>Information</B></FONT></TD>
<TD BGCOLOR="#E2EFF5">&nbsp;</TD>
</TR>

<TR>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
</TR>

<TR>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
</TR>

<TR>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
<TD WIDTH= 390><?php GMapDumpQueryResults();?> </TD>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
</TR>

<TR>
<TD><IMG SRC="images/corner_BL_DB.jpg" WIDTH="4" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD><IMG SRC="images/corner_BR_DB.jpg" WIDTH="4" HEIGHT="4"></TD>
</TR>
</TABLE>
<! end of the information box->
</TD>
</TR>


<TR>
<TD colspan=3>
This system is optimised for a 1280 x 1024 pixels screen solution.
</TD>
</TR>
</TABLE>
</TD>
<!--End of the first cell of the first table row which includes tool box & info box and resize window -->

<TD VALIGN=TOP ALIGN="LEFT">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">

<TR>
<TD><IMG SRC="images/corner_TL_LB.jpg" WIDTH="4" HEIGHT="4"></TD>
<TD BGCOLOR="#E2EFF5"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD><IMG SRC="images/corner_TR_LB.jpg" WIDTH="4" HEIGHT="4"></TD>
</TR>

<TR ALIGN="CENTER">
<TD BGCOLOR="#E2EFF5">&nbsp;</TD>
<TD BGCOLOR="#E2EFF5"><FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><B>SALFORD</B></FONT></TD>
<TD BGCOLOR="#E2EFF5">&nbsp;</TD>
</TR>

<TR>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
<TD BGCOLOR="#999999"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="1"></TD>
</TR>

<TR>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
</TR>

<TR>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
<TD BGCOLOR="#999999">
<TABLE WIDTH="300" BORDER="0" CELLSPACING="1" CELLPADDING="0" HEIGHT="300">
<TR BGCOLOR="FFFFFF" ALIGN="CENTER">
<TD><?php GMapDrawMap() ?></TD>
</TR>
</TABLE>
</TD>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
</TR>

<TR>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" ALIGN="CENTER"><?php GMapDrawScaleBar() ?></TD>
<TD BGCOLOR="#C1D8E3">&nbsp;</TD>
</TR>

<TR>
<TD><IMG SRC="images/corner_BL_DB.jpg" WIDTH="4" HEIGHT="4"></TD>
<TD BGCOLOR="#C1D8E3"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="4"></TD>
<TD><IMG SRC="images/corner_BR_DB.jpg" WIDTH="4" HEIGHT="4"></TD>
</TR>
</TABLE>
<p> </p>
</TD>
<!--End of the second cell of the first table row which is the main map window-->
</TR> <!--End of the first table row-->

<TR>
</TR>

<TR>
<TD COLSPAN="4">&nbsp;</TD>
</TR>

<TR>
<TD COLSPAN="4" BGCOLOR="#E2EFF5"><IMG SRC="images/pixel.gif" WIDTH="1" HEIGHT="2"></TD>
</TR>

<TR>
<TD COLSPAN="4">&nbsp;</TD>
</TR>

<TR>
<TD COLSPAN="4">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR ALIGN="CENTER">
<TD>
<FONT FACE="Arial, Helvetica, sans-serif" SIZE="2"><A HREF="http://www.veps3d.org"><IMG SRC="images/veps_logo.jpg" WIDTH="179" HEIGHT="85" BORDER="0"></A></FONT></TD>

</TR>
</TABLE>
</TD>
</TR>


</TABLE>

<?php if ($HTTP_FORM_VARS["MAP_NAME"])

printf("<INPUT TYPE=HIDDEN NAME=MAP_NAME VALUE="%s">",strval($HTTP_FORM_VARS["MAP_NAME"])); ?>

</FORM>
×

Success!

Help @Jonathan11 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...