datadoit.com
|
| Posted: 02/02/2005, 5:09 PM |
|
I have a CCS page with an include page called header. In that header I have
a form called headerform. In that headerform I have an input text box. In
the main page's After Execute Insert event I need to reference the value
from the header's text box. I am unable to get the text box's value using:
global $mainpage;
global $header;
$db = new clsDBInternetDB();
$SQL = "UPDATE mytable SET field2=" .
$db->ToSQL($header->headerform->textbox->GetValue(), ccsText) .
" WHERE field1=" . $db->ToSQL(mysql_insert_id(), ccsInteger);
$db->query($SQL);
$db->close();
Where am I wrong? Thanks.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 02/02/2005, 11:03 PM |
|
This is probably not related to including pages. Web browsers never submit 2 different forms (HTML standards don't allow this), thus I think that it may not be possible to access one form's value from another form.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|