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

 how to insert the info of 3 textbox into 1 database field

Print topic Send  topic

Author Message
mhopemhope

Posts: 1
Posted: 09/14/2008, 11:13 AM

hi,

my problem is that a have 3 textbox (TxtDia,TxtMes,TxtAn)to enter a date, but on the db i have 1 field called fecha_nac. where and how can i do that insert.
View profile  Send private message
wkempees


Posts: 1679
Posted: 09/15/2008, 8:41 AM

Hidden field fecha_nac on the form.
In the On Validate of that field:
  
   $fecha_nac = $Container->TxtDia->GetValue();  
   $fecha_nac .= "-";  
   $fecha_nac .= $Container->TxtMes->GetValue();  
   $fecha_nac .= "-";  
   $fecha_nac .= $Container->TxtANr->GetValue();  
//   echo "->" . $fecha_nac;  
   $Component->SetValue(  CCParseDate($fecha_nac,array("d","-","m","-","yyyy")) );  


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
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.

MS Access to Web

Convert MS Access to Web.
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.