0
I have a doubt and I believe it is very simple to solve ,how do I do not load the error "Notice: Undefined index: Cot " ,follows below the code , I know it should be pq there is no value, but anyway.
test
<body>
<form mehthod="POST" action="">
<input type="double" name="cot"><br>
<input type="submit" name="btn" value="ENVIAR">
<hr>
<?php
$cot=$_GET["cot"];
echo $cot;
?>
</form>
</body>
Plays a @ before the $Cot variable.
– Vinicius De Jesus
you can also use a
if
, example:if(isset($_GET["cot"]){
 $cot = $_GET["cot"];
}
– Vinicius De Jesus
Thank you very much ,I’ll get more theory ,vlww
– Guilherme Carvalho
Possible duplicate of How to solve a Notice: Undefined index?
– Woss