HTML Textbox not typing

前端 未结 1 1365
北荒
北荒 2021-01-27 07:03

I need help. My form in my page looks like below however when I click on the text box the cursor won\'t appear and I can\'t type

相关标签:
1条回答
  • 2021-01-27 07:35

    There's probably an error that's not being displayed on your screen because it's appearing inside the HTML tags. Make sure to check if $_GET['name'] is set first:

    <form name="input" action="postblog.php?name=<?php echo ($_GET && isset($_GET['name'])) ? $_GET['name'] : 'No_Name_Value_From_GET'; ?>" method="post">
      Post: <input type="text" name="text2" />
      <input type="submit" value="Submit" />
    </form>
    

    In this instance, if $_GET['name'] is not set, the value for ?name= will be No_Name_Value_From_GET (but you can change it to whatever you want).

    HTH... :)

    0 讨论(0)
提交回复
热议问题