switch (isset($_POST)) {
case isset($_POST['arg']):
echo '<form method="post"><h1><a>Text1</a><br> <input type="text" name="arg1" class="enterdream" autofocus> </h1></form>';
break;
case isset($_POST['arg1']):
echo '<form method="post"><h1><a>Text2</a><br> <input type="text" name="arg2" class="enterdream" autofocus> </h1></form>';
break;
case isset($_POST['arg2']):
echo '<form method="post"><h1><a>Текст3</a><br> <input type="text" name="arg3" class="enterdream" autofocus> </h1></form>';
break;
default:
echo '<form method="post"><h1><a>Текст0</a><br> <input type="text" name="arg" class="enterdream" autofocus> </h1></form>';
}
Find more questions by tags HTMLJavaScriptPHP
Here in onclick using the next()function
- Doug.OConnell commented on June 14th 19 at 18:13