SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2003
    Location
    Dayton, Ohio
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Accessible Tables

    I've written an accessible table using standard html coding, but I want to POST to a php file that will show the user's the input they provided and give them the opportunity to go back and modify what they've done.

    The problem I'm having accessible table code
    (example:
    <td><label for="Email">E-Mail Address/label></td>
    <td><input maxlength="50" id="Email" size="25" type="text" /></td>
    )
    forces me to use id instead of name.
    So in my php file I have:
    (example:
    echo "<BR>You typed <b>" . $_POST['Email'] . "</b> in the textbox.\n";
    )

    ... but the $_POST[' '] is trying to read name and not id . Anyone have any ideas how I can get the php to read id instead?

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the solution is simple: use both name and id
    incidentally, it gets interesting once you have radio buttons...they will all have the same name, so that they're mutually exclusive, but each will have a unique id, as they need a unique label associated. so you'll have something like
    Code:
    <input type="radio" name="blah" id="blahyes" value="1"><label for="blahyes">yes</label><br />
    <input type="radio" name="blah" id="blahno" value="0"><label for="blahno">no</label>
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Member
    Join Date
    Apr 2003
    Location
    Dayton, Ohio
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AHHHHHH.... that is a great example of "thinking too hard!"

    Thanks redux


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
  •