My code looks somewhat like this:
<form method="POST">
//something
<form method='GET'>
<input readonly type='text' id='userpwd' value= 'Day' name='count'/>
<input type='submit' id='btn' formaction='admi.php' name='admin' value='Add Details'></form>
<input type="submit" id="btn" formaction="choose.php" name="admin" value="Done"></p>
</form>
I want to get the value of readonly type input in my new php file.How could I achieve this.I tried doing this:
$var=$_GET['count'];
but it is giving following error msg:
Notice: Undefined index: count in C:\xampp\htdocs\tourism\admi.php on line 4
Please somebody help me out..!Kindly give some solution in php only.