Re: Forms??

From: Date: Wed, 18 Oct 2000 06:41:57 +0000
Subject: Re: Forms??
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-20802@lists.php.net to get a copy of this message
Same here .. I have a html class that i use to create forms stuff .. like this .. function select($select_array,$selected_element,$select_name,$size){ if ($size!=""){ print" <select name=\"$select_name\" size=$size> "; }else{ print" <select name=\"$select_name\"> "; } while (list ($key, $val) = each ($select_array)) { if ($key==$selected_element){ print" <option selected name=\"$key\" value=\"$key\">$val "; }else{ print" <option name=\"$key\" value=\"$key\">$val "; } } print"</select>"; } then $this->select() to make my select form ;) Henti On Tue, Oct 17, 2000 at 11:27:35PM -0700, Joe Stump wrote: > On Wed, Oct 18, 2000 at 08:15:04AM +0200, Ivanoff Jari wrote: > > Hi! > > I have some questions about forms: > > 1. Is there any good tutorials about handling forms with PHP? > > Many can be found at phpbuilder.com > > > 2. Which is the best way of handling forms? A normal html file or within a > > PHP script? > > I like my forms all in an array - > ie <input type="text" name="form[firstname]"> then > $form['firstname'] will hold > the value of whatever the user put in. > > > 3. How do I redirect the output of the form to an other frame? > > header("Location: ¡© > s}Ìþ¦ã}vÌÑ››http://www.server.com/second_page.html?firstname=".$form['firstname']); > > --Joe > > > > /Jari Ivanoff > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > /*****************************\ > * Joe Stump * > * www.Care2.com * > * Office: 650.328.0198 * > * Extension: 122 * > \*****************************/ > http://www.miester.org/Joe/Stump/Joe_Stump_resume.html > > -----BEGIN GEEK CODE BLOCK----- > Version: 3.12 > GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$ > N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@ > 5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)! > ------END GEEK CODE BLOCK------ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#20802) next »