SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast townmiddleburgh's Avatar
    Join Date
    Aug 2003
    Location
    Middleburgh, NY
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

  2. #2
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    try using location.search.substring(...) and then assigning the appropriate button.

    document.formname.radiobutton[X].checked = true;

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •