SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    displaying stuff into textboxes

    hey guys...

    I'm trying to read out a PHP variable in a cookie so that when a page loads, the user's ID is displayed in the Submit textbox.

    Here's my unsuccessful code (so far), any way around this?

    PHP Code:
    <FORM ACTION="normal.php">
    <METHOD=GET>WWID: <INPUT TYPE=TEXT? <? echo $HTTP_COOKIE_VARS["userID"]; ?> NAME="id_num">

    <INPUT TYPE=SUBMIT VALUE="Submit"></FORM>

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That should be:

    <INPUT TYPE=TEXT value="<? echo $HTTP_COOKIE_VARS["userID"]; ?>" NAME="id_num">
    ck :: bringing chris to the masses.

  3. #3
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    got it.. thanks!


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
  •