Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php select option

// Page containing a form:
<form action="myaction.php" method="post">
 <select name="fruit">
    <option value="Apple">Apple</option>
    <option value="Banana">Banana</option>
 </select>  
 <input type="submit" value="Submit">
</form>

// myaction.php
Hello <?php echo htmlspecialchars($_POST['fruit']); ?>
Source by www.positronx.io #
 
PREVIOUS NEXT
Tagged: #php #select #option
ADD COMMENT
Topic
Name
1+5 =