saving . . . saved Warning Appears in text box after php embedding, this should be blank has been deleted. Warning Appears in text box after php embedding, this should be blank has been hidden .
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 24-05-21, 1:38 p.m. Sudeept

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>
29-05-21, 3:24 a.m. Sudeept


Log-in to answer to this question.