Tuesday, 9 June 2020

php forms

less0n 21
html forms
<form action = "index.php" method ="">
whenver us submit this html , it writes in url with ? Day month year
Day: <br> <input type="text" name="day" > <br> <br>
if we enter values submit, it shows day month year
month: <br> <input type="text" name="month" > <br> <br>
after entering this page redirects to index.php page
year: <br> <input type="text" name="year" > <br> <br>
index.php?day=10&month=12&year=2020
<input type ="submit" value="submit">
</form>






what happpened in url after submit
where It redirects will go to after submit
form
input
index
submit

No comments:

Post a Comment