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);
|
 |
 |
|