-
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!
-
Hi,
something like
Code:
<input type = "text" name = "tb" value="<?=$password?>">
Musicman
-
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!
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|