glennn.php Posted July 22, 2006 Share Posted July 22, 2006 i would like to convert these two submit buttons to a radio button choice - is there anyone that can help?[code] function send_data( selection ) { if (chkform()) { document.jnl2_sign_form.method = "post"; if ( selection == "sign_in" ) { //** changed $sign_in_page to maillist.php **/ document.jnl2_sign_form.action = "../new1/maillist.php?do=sign_in&language=$language&ml_id=$ml_id"; } if ( selection == "sign_out" ) { document.jnl2_sign_form.action = "../new1/maillist.php?do=sign_out&language=$language&ml_id=$ml_id"; } document.jnl2_sign_form.submit(); } }</script><div class="jnl2"><div class="mini_sign_form"><form name="jnl2_sign_form"> <nobr><b>{$loc_lang["email_address"]}</b></nobr><br> <input type="text" name="email" style="width: 70%" maxlength="45"><br> <p align="center"> <nobr> <input type="button" value="{$loc_lang["sign_in_newsletter"]}" name="sign_in" onclick="send_data(this.name)" class="buttons"><br /> <input type="button" value="{$loc_lang["sign_out_newsletter"]}" name="sign_out" onclick="send_data(this.name)" class="buttons"> </nobr> </p> </form>[/code]thanks in advance,g Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 22, 2006 Share Posted July 22, 2006 change:<input type="button"to<input type="radio"Also this a HTML issue so I am moving this. Quote Link to comment Share on other sites More sharing options...
glennn.php Posted July 22, 2006 Author Share Posted July 22, 2006 ok, let me rephrase the polite and respectful request:i would like to change those two submit buttons to radio buttons in such a way as to have the necessary data properly submitted. is there anyone that wouldn't mind going to the trouble of showing me how it would be done? i hate to be a bother... Quote Link to comment Share on other sites More sharing options...
nogray Posted July 24, 2006 Share Posted July 24, 2006 as wildteen88 said[quote]change:<input type="button"to<input type="radio"[/quote]should do the trick.You may need to add some text next to the radio button. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.