#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    5
    Rep Power
    0

    Radio Button Validator


    Hello all....this is my first post.

    I am building a shipping tool that requires radio button selection and validation. I have tried several validations and can only get one of the "components to validate. Each component requires specific alert and has varying selections. See code:


    Any thoughts on how to tackle this?

    Thanks, in advance,

    dilbert65

    PHP Code:
    <form name="Form" onSubmit="">
      <
    table width="400" border="0">
        <
    tr
          <
    td colspan="2">Zip Code</td>
        </
    tr>
        <
    tr
          <
    td><p>Origin</p></td>
          <
    td> <input type="text" name="MapResultsValue1"> </td>
        </
    tr>
        <
    tr
          <
    td><p>Destination</p></td>
          <
    td> <input type="text" name="MapResultsValue2"> </td>
        </
    tr>
        <
    tr
          <
    td colspan="2">&nbsp;</td>
        </
    tr>
        <
    tr
          <
    td colspan="2">Do you want to track the shipment?</td>
        </
    tr>
        <
    tr
          <
    td><div align="left">Yes</div></td>
          <
    td> <input type="radio" name="track" value="0"> </td>
        </
    tr>
        <
    tr
          <
    td><div align="left">No</div></td>
          <
    td><input type="radio" name="track" value="1"></td>
        </
    tr>
        <
    tr
          <
    td colspan="2">&nbsp;</td>
        </
    tr>
        <
    tr
          <
    td colspan="2">Is Destination a Company Location?</td>
        </
    tr>
        <
    tr
          <
    td><div align="left">Yes</div></td>
          <
    td><input type="radio" name="destination" value="0"></td>
        </
    tr>
        <
    tr
          <
    td><div align="left">No</div></td>
          <
    td><input type="radio" name="destination" value="1"></td>
        </
    tr>
        <
    tr
          <
    td colspan="2">&nbsp;</td>
        </
    tr>
        <
    tr
          <
    td colspan="2">Arrival day (select one)</td>
        </
    tr>
        <
    tr
          <
    td><p>Next Day</p></td>
          <
    td><input type="radio" name="days" value="0"></td>
        </
    tr>
        <
    tr
          <
    td><div align="left">2 Day</div></td>
          <
    td><input type="radio" name="days" value="1"></td>
        </
    tr>
        <
    tr
          <
    td><p>3 Day</p></td>
          <
    td><input type="radio" name="days" value="2"></td>
        </
    tr>
        <
    tr
          <
    td><p>No Preference</p></td>
          <
    td><input type="radio" name="days" value="3"></td>
        </
    tr>
        <
    tr
          <
    td colspan="2">&nbsp;</td>
        </
    tr>
        <
    tr
          <
    td colspan="2">Envelope Size</td>
        </
    tr>
        <
    tr
          <
    td><p>Letter</p></td>
          <
    td><input type="radio" name="size" value="0"></td>
        </
    tr>
        <
    tr
          <
    td><p>Legal</p></td>
          <
    td><input type="radio" name="size" value="1"></td>
        </
    tr>
        <
    tr
          <
    td><p>Box Size A</p></td>
          <
    td><input type="radio" name="size" value="2"></td>
        </
    tr>
        <
    tr
          <
    td><p>Box Size B</p></td>
          <
    td><input type="radio" name="size" value="3"></td>
        </
    tr>
        <
    tr
          <
    td><p>Box Size C</p></td>
          <
    td><input type="radio" name="size" value="4"></td>
        </
    tr>
        <
    tr
          <
    td colspan="2">&nbsp;</td>
        </
    tr>
        <
    tr
          <
    td colspan="2"><input type="submit" name="Submit" value="Submit"></td>
        </
    tr>
      </
    table>
    </
    form
    Last edited by dilbert65; October 20th, 2003 at 01:12 PM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2001
    Posts
    765
    Rep Power
    13
    Your welcome.
    Attached Files

IMN logo majestic logo threadwatch logo seochat tools logo