-
SitePoint Enthusiast
Variable Trouble
Question #1:
I want to make a link to a form that populates a radio button group when the form loads:
page 1: link makes buttonX selected
form 1: onLoad(something) makes buttonX selected, based on referring page (page1-button1, page2-button2) or by link (form1.jsp?name=value)
I've tried this in PHP, but I know nothing about it, and when I did try it, it worked for a while, then mysteriously stopped working.
And #2: Can I call a CGI script from Javascript to send the mail message?
-
Hi,
try using location.search.substring(...) and then assigning the appropriate button.
document.formname.radiobutton[X].checked = true;
Vinny
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks