I need help with valueues

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

juansoul
New php-forum User
New php-forum User
Posts: 29
Joined: Tue Oct 08, 2002 6:33 pm

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

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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...


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest