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
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... :)