Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread David Otton

On Mon, 04 Feb 2002 09:32:31 -0200, you wrote:

First, you need to fix those tags :

select name=~x~
 select name=x

   option A option
option A /option

How can a access ~x~ content into a PHP variable ?

It happens automatically. When you submit a form, PHP variables are
created for the receiving script that match the contents of the form.
Take a look at this example, which posts back to itself :

html
 headtitletest page/title/head
 body
?
if (isset($variable)) {
/* do page 2 */
echo(pYou chose : $variable/p);
} else {
/* do page 1 */
?
  form method=post action=? echo ($PHP_SELF); ?
   pChoose one : select name=variable
option value=1Red/option
option value=2Green/option
option value=3Blue/option
   /select/p
   pinput type=submit name=go value=go/p
  /form
?
}
?
 /body
/html

Also check here http://www.faqts.com/knowledge_base/index.phtml/fid/6
for more help with forms.

copmuter programmer

I wish you'd fix that...

djo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread bvr



best regards,

eduardo melo
copmuter programmer


Any cops on this list:
watch out for this guy!


bvr.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread Evan Nemerson

ereg() and eregi() should help. Maybe even explode().



On Monday 04 February 2002 03:32, you wrote:
 How can i accessa HTML object into a PHP code ?

 as such as :

 select name=~x~
option A option
option B option
option C option
 /select)

 How can a access ~x~ content into a PHP variable ?

 best regards,

 eduardo melo
 copmuter programmer

 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php