- Code: Select all
<select name="Top">
<option value="biological, text here">first option</option>
Now when I pass the value to the php file I want to be able to print separately biological from text here
how do I do This
Moderators: macek, egami, gesf
<select name="Top">
<option value="biological, text here">first option</option>
juansoul wrote:this is what I need to do I have a html drop down menu on the value for the first option is
- Code: Select all
<select name="Top">
<option value="biological, text here">first option</option>
Now when I pass the value to the php file I want to be able to print separately biological from text here
how do I do This
<select name="Top">
<option name="name" value="biological, text here">first option</option>
....................
<?php
$df = explode(", ",$name);
print ($df[1]);
?>

Return to PHP coding => General
Users browsing this forum: Google Feedfetcher and 1 guest