Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working with advancedform library

Status
Not open for further replies.

arlequin

Programmer
Joined
Sep 21, 1999
Messages
232
Location
UY
The advanced form library <is wonderful, allows a non-designer to use the OO technology to create a beautiful form!

However, I want to have a hiden field but I can't find the way to do that. I tried using the display-only property of the TextField object in order to read it using the PHP $_POST array but I realized that it's not dumped in HTML like a hidden form field, but as normal text, so it's not present in the $_POST array. I can't write directy using echo or print 'cause the form is dumped in the end of the script through one of its methods.

Anyone has dealed with an issue like this?

TIA

Arlequín
arlequin_AT_internet_DOT_com_DOT_uy
 
arlequin,

If you use a hidden field in your form like this:

Code:
<FORM ACTION=&quot;something.php&quot; METHOD=&quot;POST&quot;>
  <!-- your form data here... -->
  <INPUT TYPE=&quot;hidden&quot; NAME=&quot;secret&quot; VALUE=&quot;my secret&quot;>
</FORM>

Then this (and the rest of the form fields) can be retrieved through
Code:
$_REQUEST[&quot;
Code:
fieldname
Code:
&quot;];
in the ACTION-page, like this:

Code:
<? 
  $secret = $_REQUEST[&quot;secret&quot;];  // in this example $secret will be = &quot;my secret&quot;
  // your code ...
?>

Good luck §;O)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top