[PHP] attaching php-action to form-button

2003-03-07 Thread Michiel van Heusden
my problem is this

I have some variables defined which i'm sending through get

form name=form1 method=get action=result.php
// input's etc
/form

now I have $var1 defined in my PHP and I want to send it through that GET as
well
is there a way to do this?

so it's not a user-defined but php-defined var, which i need to send through
the form

any help appreciated



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



Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Ernest E Vogelsinger
At 12:59 07.03.2003, Michiel van Heusden said:
[snip]
I have some variables defined which i'm sending through get

form name=form1 method=get action=result.php
// input's etc
/form

now I have $var1 defined in my PHP and I want to send it through that GET as
well
is there a way to do this?

so it's not a user-defined but php-defined var, which i need to send through
the form
[snip] 

use a hidden field:

form name=form1 method=get action=result.php
input type=hidden name=var value=?php echo htmlentities($var); ?
// input's etc
/form



-- 
   O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



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



Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Awlad Hussain
did you try to include them as hidden variables?
if not, try including them as hidden vars

awlad

- Original Message -
From: Michiel van Heusden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 11:59 AM
Subject: [PHP] attaching php-action to form-button


 my problem is this

 I have some variables defined which i'm sending through get

 form name=form1 method=get action=result.php
 // input's etc
 /form

 now I have $var1 defined in my PHP and I want to send it through that GET
as
 well
 is there a way to do this?

 so it's not a user-defined but php-defined var, which i need to send
through
 the form

 any help appreciated



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



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



Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Mincu Alexandru
On Fri, 2003-03-07 at 14:19, Ernest E Vogelsinger wrote:
 At 12:59 07.03.2003, Michiel van Heusden said:
 [snip]
 I have some variables defined which i'm sending through get
 
 form name=form1 method=get action=result.php
 // input's etc
 /form
 
 now I have $var1 defined in my PHP and I want to send it through that GET as
 well
 is there a way to do this?
 
 so it's not a user-defined but php-defined var, which i need to send through
 the form
 [snip] 
 
 use a hidden field:
 
 form name=form1 method=get action=result.php
 input type=hidden name=var value=?php echo htmlentities($var); ?
 // input's etc
 /form
 
or :
form name=form1 method=get action=result.php?var=?php echo
urlencode($var); ?
!-- inputs --
/form
 
 
 -- 
O Ernest E. Vogelsinger
(\)ICQ #13394035
 ^ http://www.vogelsinger.at/
-- 
Mincu Alexandru intelinet.ro
Tel:+4 0745 369719  +4 021 3140021
www.intelinet.ro[EMAIL PROTECTED]



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