Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

I need help with valueues

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

I need help with valueues

Postby juansoul » Mon Nov 11, 2002 12:50 pm

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
juansoul
New php-forum User
New php-forum User
 
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

Re: I need help with valueues

Postby WiZARD » Tue Nov 12, 2002 12:37 am

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


Code: Select all
<select name="Top">
                <option name="name" value="biological, text here">first option</option>
....................

<?php
$df = explode(", ",$name);
print ($df[1]);
?>


Ann try in future read manual...
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.