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 $_SERVER['PHP_SEL

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 $_SERVER['PHP_SEL

Re: [PHP] dropdown Newbie question

2002-09-10 Thread yasin inat
u cannot use form's name as variable . u should replace this row http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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? Background Color Blue Red Green Black '; echo $_

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Jay Blanchard
[snip] > Did you put a closing form tag? 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 anyth

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]] > > > Did you put a closing form tag? you are right, the closeing tag was missing, well, it still doesnt work/stays emty ;/ // Theme echo '   '; for($i=0;$i".$theme_name[$i]."\n"; } echo '  '; echo ''; //i tried it here $var_from_dropdown = $_

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 Jay Blanchard
[snip] Well, this is my original Code: // Theme echo '   '; for($i=0;$i".$theme_name[$i]."\n"; } echo '  '; $var_from_dropdown = $_POST['theme']; exec("echo $var_from_dropdown > /tmp/varfromdropdown"); The file /tmp/varfromdropdown is still emty. (the dropdown field is NOT emty by the time i p

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
Well, this is my original Code: -- // Theme echo '   '; for($i=0;$i".$theme_name[$i]."\n"; } echo '  '; $var_from_dropdown = $_POST['theme']; exec("echo $var_from_dropdown > /tmp/varfromdropdown"); The file /tmp/varfromdropdown is still emty. (the dropdown f

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Jay Blanchard
[snip] // Theme echo '   '; for($i=0;$i".$theme_name[$i]."\n"; } echo '  '; // or: echo '  '; $var_from_dropdown = $_POST['theme']; exec("echo $var_from_dropdown > /tmp/varfromdropdown"); the exec line seems to works since it created the file. But it stays emty. [/snip] You need to place METH

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Justin French
o submit >> the form. >> >> Assuming you use POST, you can access the selected value like this: >> >> $var_from_dropdown = $_POST['theme']; >> >> Regards >> >> -|Scott >> >> >>> -Original Message- >&

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
to submit > the form. > > Assuming you use POST, you can access the selected value like this: > > $var_from_dropdown = $_POST['theme']; > > Regards > > -|Scott > > > > -Original Message- > > From: Mario Ohnewald [mailto:[EMAIL PROTECTED

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Paul Nicholson
> Regards > > -|Scott > > > -Original Message- > > From: Mario Ohnewald [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 05, 2002 1:11 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] dropdown Newbie question > > > > > > Hello!

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Scott Houseman
-Original Message- > From: Mario Ohnewald [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 05, 2002 1:11 PM > To: [EMAIL PROTECTED] > Subject: [PHP] dropdown Newbie question > > > Hello! > I am very new in php and i have a little dummy question ;D > I have

[PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
Hello! I am very new in php and i have a little dummy question ;D I have a dropdown box with a entry in it called "Coctail Blue" Now i want to put the selected string ("Coctail Blue" in this case) in to a variable when i press the button below. options.php is the page it should go after. // ..SN