CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Reference an Object in an Include Page

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.