A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Telling PHP to change the value of a textbox

  1. #1
    Senior Member
    Join Date
    Aug 2003
    Posts
    438

    Telling PHP to change the value of a textbox

    <input type = "text" name = "tb">
    PHP Code:
    <?php
    $password 
    rand(0,9);
    //How do I make $password be displayed in text box "tb"?
    />
    thanks!

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    something like
    Code:
    <input type = "text" name = "tb" value="<?=$password?>">
    Musicman

  3. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    438
    Im sorry, but I do not get what you are saying.
    Once I declare the text box, how do I change its value in a code later on? Thanks!

  4. #4
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    once a html page is displayed, serverside scripts do not change it - only clientside (javascript) can do.
    Could you explain what you are actually aiming at?

    Musicman

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center