PDA

View Full Version : Made customized radio buttons for CGI script and now script has a glitch


Deanna475
11-24-2003, 02:22 AM
Hello all. I was over in the JavaScript forum and received some advice on how to make customized radio buttons for a mailing list subscribe/unsubscribe script. All of the details can be found at this thread (http://www.codingforums.com/showthread.php?s=&postid=151136#post151136). CF Addict, Adios, advised me as follows:

Post this to the Perl forum; just preface it by noting that the form element in question (name="subscribe") has been changed (name="subscription_status").

So now I'm throwing myself on the mercy of the Perl/CGI gurus and hope that someone can help me figure out what needs to be done to make the script work as it should (radio buttons are awesome, BTW, LOL). In case it matters, I am using a script called Subscribe Me Lite by SiteInteractive.com, version: 2.05, http://www.siteinteractive.com.

Any and all assistance is appreciated.

Deanna
http://ldoa.net/

dswimboy
11-26-2003, 06:44 PM
could you post the page you have with the radio buttons and a txt file of the script you're trying to use?

Deanna475
11-26-2003, 08:56 PM
Hi and thank you for responding to my question, however, the matter has resolved itself and the radio buttons function as they should. Only yesterday I managed to find some help from someone who knows more about JavaScript and Perl than I do and here is the solution:

In the JavaScript function, change the last line to:


code:--------------------------------------------------------------------------------
document.forms[0].subscribe.value = img_name;
--------------------------------------------------------------------------------

In the HTML, change the hidden field definition to:

code:--------------------------------------------------------------------------------
<input type="hidden" name="subscribe" value="subscribe"></form>
--------------------------------------------------------------------------------


I was going to return to this thread and let everyone know my crisis has been averted but life got in the way. But thank you for taking an interest in my problem. I appreciate that.