RE: [PHP] dropdown Newbie question

From: Date: Tue, 10 Sep 2002 07:41:37 +0000
Subject: RE: [PHP] dropdown Newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115832@lists.php.net to get a copy of this message
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="POST"><br> <select id="colorPicker" onChange="changeColor(this.options[this.selectedIndex].value)"> <option>Background Color <option value="0000FF">Blue <option value="FF0000">Red <option value="00FF00">Green <option value="000000">Black </select> <input type="submit" value="Click To View Submission"> </form> '; echo $_POST['test']; ?> </body> </html> > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] > > > [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 anything. > > Jay > > >

« previous php.general (#115832) next »