RE: [PHP] dropdown Newbie question

2002-09-10 Thread Mario Ohnewald
Hello, after a little break ( i really needed it ;P), i tried to get this thing wotkig again. I changed action to .$PHP_SELF. and i added the echo to test if it works: echo $_POST['test']; But still emtpy, what do i do wrong? ?php echo ' form name=test action='.$PHP_SELF.' method=POSTbr

Re: [PHP] dropdown Newbie question

2002-09-10 Thread yasin inat
u cannot use form's name as variable . u should replace this row select id=colorPicker like this select name=test id=colorPicker u can see the selected option's value -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] dropdown Newbie question

2002-09-10 Thread timo stamm
Hi Mario, you can set error_reporting to E_ALL to give you more hints to bugs and to produce clean code. You are having two problems. The first was related to your form and has been addressed by Yasin. The second is that you have autoglobals off. That means you have to use

Re: [PHP] dropdown Newbie question

2002-09-10 Thread timo stamm
Hi Mario, you can set error_reporting to E_ALL to give you more hints to bugs and to produce clean code. You are having two problems. The first was related to your form and has been addressed by Yasin. The second is that you have autoglobals off. That means you have to use

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Scott Houseman
Hi there. The value from that dropdown will be returned to you in the variable $_POST OR $_GET, depending on which method you used to submit the form. Assuming you use POST, you can access the selected value like this: $var_from_dropdown = $_POST['theme']; Regards -|Scott -Original

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, If your php version is = 4.1.0 use: $var_from_dropdown = $_GET['theme']; else use: $var_from_dropdown = $HTTP_GET_VARS['theme']; You might want to change the method used to submit your form from get to post, like: // Start Dropdown echo 'form

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
Hi, I tried it but i wasnt luck: // Theme echo ' form name=theme action=options.php target=right class=menu nbsp;nbsp;select name=theme'; for($i=0;$isizeof($theme_name);$i++) { echo option value='.$i.'.$theme_name[$i]./option\n; } echo '/selectnbsp;nbsp;input type=submit name=get value=select

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Justin French
method is an attribute of form, not sure about input. --- // Theme echo ' form name=theme action=options.php target=right class=menu METHOD=POST nbsp;nbsp;select name=theme'; for($i=0;$isizeof($theme_name);$i++) { echo option value='.$i.'.$theme_name[$i]./option\n; } echo

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Jay Blanchard
[snip] // Theme echo ' form name=theme action=options.php target=right class=menu nbsp;nbsp;select name=theme'; for($i=0;$isizeof($theme_name);$i++) { echo option value='.$i.'.$theme_name[$i]./option\n; } echo '/selectnbsp;nbsp;input type=submit name=get value=select METHOD=POST'; // or: echo

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
Well, this is my original Code: -- // Theme echo ' form name=theme action=options.php target=right class=menu METHOD=POST nbsp;nbsp;select name=theme'; for($i=0;$isizeof($theme_name);$i++) { echo option value='.$i.'.$theme_name[$i]./option\n; } echo '/selectnbsp;nbsp;input

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Jay Blanchard
[snip] Well, this is my original Code: // Theme echo ' form name=theme action=options.php target=right class=menu METHOD=POST nbsp;nbsp;select name=theme'; for($i=0;$isizeof($theme_name);$i++) { echo option value='.$i.'.$theme_name[$i]./option\n; } echo '/selectnbsp;nbsp;input type=submit

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Justin French
Why don't you take the guesswork out of it a bit, and NOT write to a file just yet... instead, just echo the var to the screen. IF that works, then we know it's not your form that is the problem, it's the exec(). Justin on 06/09/02 12:08 AM, Mario Ohnewald ([EMAIL PROTECTED]) wrote: Well,

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Did you put a closing form tag? /form you are right, the closeing tag was missing, well, it still doesnt work/stays emty ;/ // Theme echo ' form name=theme action=options.php target=right class=menu method=POST nbsp;nbsp;select name=theme';

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Jay Blanchard
[snip] Did you put a closing form tag? /form you are right, the closeing tag was missing, well, it still doesnt work/stays emty ;/ [/snip] Does this form refer to itself, or another page? Also, like Justin said, echo the variable before writing to a directory to see what is getting written, if