I need help with valueues

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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...
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 5 guests