RE: $_POST vars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jim, 

Sure you can create set of et of $_POST vars :

e.g. 
<form action="myphpaction.php" method="POST">

<input type="password"  name="admin_code" value='Enter here..'
               onclick="if(this.value=='Enter here..'){this.value='';
this.style.color='#000'}"
                 onblur="if(this.value==''){this.value='Enter here..';
this.style.color='#555'}" />
<input type="submit" VALUE="Execute" /> 
</form>

So that  admin_code var is passed to myphpaction.php as post and shall be
access there via  $_POST["admin_code "]; 
However, note that in PHP all the output buffer is flushed actually,
ONLY after the script execution is  terminated. 

Skype:  eliorr.com


-----Original Message-----
From: Jim Giner [mailto:jim.giner@xxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, April 13, 2011 8:50 PM
To: php-general@xxxxxxxxxxxxx
Subject:  $_POST vars

Can one create a set of $_POST vars within a script or is that not do-able? 
My display portion of my script utilizes the POST array to supply values to
my input screen - this works well for the first display of an empty screen,
and any following re-displays if there's an error in the user's input.  But
I want to use this same script/screen to display the results of a query when
the user wants to update an existing record. 



--
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




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux