Jump to content

Ryan_Alexander

Members
  • Posts

    3
  • Joined

  • Last visited

Ryan_Alexander's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is there any easy way of doing this? I haven't got a clue where to start
  2. But it works as it is, do I really need to use javascript to display the text after an action?
  3. Hi there, I wish to write a set $var into a textbox. So far, I have gotten: <?php $result = "Hello world!"; //Do your logic anywhere but be sure to set the result here ?> <form method="post" action="script.php"> .... <input type="text" value="<?= $result?>" readOnly> <input type="submit"> </form> Now, this sets my textbox to say "Hello World", however, I would like for the text box to be blank and once I have clicked my button, for the textbox to be populated with "hello world", not before. Thank you for reading this.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.