CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Trim in the record

Print topic Send  topic

Author Message
nag22
Posted: 06/23/2005, 1:35 PM

I have a form which submits data to the database.
ID is my primary key
i need to restict the users from sending the spaces along with the ID while submitting.
I should not be submitting the spaces with ID
for eg: ID='LTC_RET00567 '

Can anyone please help me with this trim function .
ju2au


Posts: 7
Posted: 06/23/2005, 4:48 PM

Maybe add some custom code in the "Before Insert" Event like this:

global $form1;

$id = $form1->idTextBox->GetValue();
$id = trim($id);
$form1->idTextBox->SetValue($id);
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.