CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 insert the values to the database using hidden text boxes

Print topic Send  topic

Author Message
kriska

Posts: 18
Posted: 11/27/2009, 2:39 AM

hi all,

I'm new to the code charge so i dont know much about the soft ware.
I'm trying to create a messaging system inside a site. so i just want to pass the user it to the message table which i created to store the message data in the messaging system.
i used the msg_to_name to enter the user name and it contains the auto complete feature. i just need to insert the msg_to_id which is the user id of the receiver. so i try to insert a hidden text box to do that. but i was failed. so any one can help me on this matter.
I got another problem also. i just need to add the compose mail data to the draft table when user click a button(named as add to draft). so there on the button on click event i used

$db = new clsDBConnection1();
$SQL = "INSERT INTO draft (msg_to_name,msg_title,msg_body,msg_from_name,msg_id) ".
"VALUES (". $db->ToSQL(CCGetFromGet("msg_to_name",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_title",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_body",0),ccsInteger) .",". $db->ToSQL(CCGetFromGet("msg_from_name",0),ccsInteger) .",". $db->ToSQL(CCGetUserID(),ccsInteger) .")";

but it doesn't work.
could you please anyone can help me on this matter.
thank you

regards
kriska
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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