SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I need some assistance on this script

    hello
    i have the following phone book which i would like to implement a few extra jscript functions

    I would like
    1. When a user clicks the checkbox the value appears in the textfield and is written to the page.

    "1 recepient added"

    2. When a user checks a 2nd option, the value is added to the textfield seperated by a comma

    And a value written

    "2 recepient(s) added"

    based on the total

    Any assistance ?

    Thanks
    afrika





    Code:
    <html>
    
    <head>
    <title>Help</title>
    </head>
    
    <body>
    
    <form method="POST" action="index.asp">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
        <tr>
          <td width="33%"><input type="checkbox" name="user1" value="254254245243"></td>
          <td width="33%"><input type="text" name="phone_nu" size="20"></td>
          <td width="34%">&nbsp;</td>
        </tr>
        <tr>
          <td width="33%"><input type="checkbox" name="user5" value="5354353245234"></td>
          <td width="33%">&nbsp;</td>
          <td width="34%">&nbsp;</td>
        </tr>
        <tr>
          <td width="33%"><input type="checkbox" name="user2" value="254234543"></td>
          <td width="33%">&nbsp;</td>
          <td width="34%">&nbsp;</td>
        </tr>
        <tr>
          <td width="33%"><input type="checkbox" name="user4" value="2542534543"></td>
          <td width="33%">&nbsp;</td>
          <td width="34%">&nbsp;</td>
        </tr>
        <tr>
          <td width="33%"><input type="checkbox" name="user3" value="542454254543"></td>
          <td width="33%">&nbsp;</td>
          <td width="34%">&nbsp;</td>
        </tr>
      </table>
      <p><input type="submit" value="Submit" name="B1"></p>
    </form>
    
    <p>&nbsp;</p>
    
    </body>
    
    </html>

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,169
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    Javascript

    Oops! You forgot to post your existing code

  3. #3
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry dont have any code for now, am not a jscript guru

    Any assistance with the above ?

    thanks in advance

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,169
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    Quick solution

    You should be able to find someone to do the work for you very quickly if you post a thread in the proper forum
    http://www.sitepoint.com/forums/forumdisplay.php?f=220
    or maybe
    http://www.sitepoint.com/forums/forumdisplay.php?f=7


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
  •