Hello,
I have just created a new page of form submittion but wanted to show different form value when different option is selected from the dropdown can any please help me out with this concirn.
Here is my code
<form method="post" name="form2" action="insert_report.php">
<label>
<p><b>Campaign</b></p>
<p>
<select name="campaign">
<option value="">Select Campaign</option>
<option value="web">Karachi</option>
<option value="logo">Lahore</option>
<option value="graphic">Islamabad</option>
</select>
<p>
</label>
<label>
<?php
switch ($_POST['campaign'])
{
case 'web':
echo "<p><b>Web Status</b></p>";
echo "<p><input type='text' name='stat' class='pw'></p>";
echo "<p><b>Pages Develop</b></p>";
echo "<p><input type='text' name='dev' class='pw'></p>";
break;
case 'logo':
echo "<p><b>Logo Uploaded</b></p>";
echo "<p><input type='text' name='logo1' class='pw'></p>";
echo "<p><b>Revised Logo</b></p>";
echo "<p><input type='text' name='logo2' class='pw'></p>";
break;
case 'graphic':
echo "<p><b>Type Of Designs</b></p>";
echo "<p><input type='text' name='tod' class='pw'></p>";
echo "<p><b>Worked On Revisions</b></p>";
echo "<p><input type='text' name='wor' class='pw'></p>";
break;
default:
echo " ";
}
?>
</label>
I hope you guyz will help me out with this concirn
Thank you