Mittul Chuahan
New member
hello .. i want to use dropdown onchange event with the use of javascript and want to get and fetch that selected value with the use of php . .
here is my code ..
--------------------------------------------------------
mypage.php
-----------------------
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?> ">
Select your Category :
<select name="category" id="category">
<option value="Select your Category" >Select your Category</option>
<option value="Banking and Finance">Banking and Finance</option>
<option value="Secretarial and Administration">Secretarial and Administration</option>
<option value="Miscellaneous">Miscellaneous</option>
<option value="Sales and Marketing ">Sales and Marketing </option>
<option value="UAE Nationals">UAE Nationals</option>
</select>
</form>
--------------------------------------------------------
now what i want here is as soon as the user selects the option, the value will be retrieved into the same with with the use of PHP VARIABLE
i mean i want to first send this selected value to the PHP variable and then this PHP variable will show the selected value using ECHO or PRINT ..
can any php master tell me how to do ths ..
your help would be appreciated.
thank you.
i want to retrieve the value into the same page . .without any redirection ..
here is my code ..
--------------------------------------------------------
mypage.php
-----------------------
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?> ">
Select your Category :
<select name="category" id="category">
<option value="Select your Category" >Select your Category</option>
<option value="Banking and Finance">Banking and Finance</option>
<option value="Secretarial and Administration">Secretarial and Administration</option>
<option value="Miscellaneous">Miscellaneous</option>
<option value="Sales and Marketing ">Sales and Marketing </option>
<option value="UAE Nationals">UAE Nationals</option>
</select>
</form>
--------------------------------------------------------
now what i want here is as soon as the user selects the option, the value will be retrieved into the same with with the use of PHP VARIABLE
i mean i want to first send this selected value to the PHP variable and then this PHP variable will show the selected value using ECHO or PRINT ..
can any php master tell me how to do ths ..
your help would be appreciated.
thank you.
i want to retrieve the value into the same page . .without any redirection ..