Thank's for the help!
Dean
- Original Message -
From: Jimmy [EMAIL PROTECTED]
To: Dean Householder [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 12:33 AM
Subject: Re: [PHP] Piping data into a select box
Hi Dean,
Does anyone know how to give a select
Does anyone know how to give a select pulldown box a default value from a PHP variable?
I've been able to figure out how to pipe data into every type in input type of form
element except for a select element. Any solutions would be helpful!
Dean
- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: Dean Householder [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 7:12 PM
Subject: Re: [PHP] Piping data into a select box
Dean, give this a try.
form action=?php print $php_self? method=post
?php
select type=text
Hi Dean,
Does anyone know how to give a select pulldown box a default value
from a PHP variable?
?
function generate_option_list ($key_value,$set) {
// This function will return option list and set the selected attribute
// $key_value : the associative array which contain the key and the
4 matches
Mail list logo