I will show you how to add textbox, select, or any checkbox dynamically in PHP. I will show you how to add dynamic textbox while clicking on link.
document.getElementById("data").value="<input type='text' name='name'>";
<a onClick="add_textbox()">Add Textbox</a>
We can easily add all types of inputs dynamically.
Conditionals allow your program to make choices. Following the same sort of boolean logic you just learned about, the computer can only make two choices; true or false. In the case of PHP this is accomplished using IF : ELSE statements. Below is an example of an IF statement that would apply a senior’s discount.
in following statements if $name is premal then all statements inside breckets should be display.
echo “Premal Katigar”;
echo “Wrong Statement”;