Warning Appears in text box after php embedding, this should be blank
Title
Question
Hello Sir/ma'am,
A warning Appears in text box after php embedding, this text box should be blank. How do we suppress warning message? Here is the php/html code used : <html>
<o:p></o:p>
<input type = 'text' name = 'name' value = '<?php echo $_GET['name'] ?>' >
<input type = 'submit' value = 'Click here'>
<span style="background-color: rgb(250, 250, 250);"></html></span>
Warning Message : <br /><b>Warning</b>: Undefined array key "name" in <b>D:\Programming\PHP-Javascript\xampp\htdocs\phpacademy\embed.php</b> on line <b>10</b><br />
PHP-and-MySQL Embedding-PHP 03-04 min 50-60 sec
Answers:
<span style="background-color: rgb(250, 250, 250);">Using following code instead of above resolved the issue (Putting a @ before GET function) : '<?php echo </span>@<span style="background-color: rgb(250, 250, 250);"> $_GET['name'] Lesson : Common Errors: Part 3 - 03:95</span>
thanks for the awesome information.
https://ometv.onl https://chatroulette.top https://omegle.wtf https://bazoocam.cam
Login to add comment