ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Need more validation field, how to escape ' in db (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Need more validation field, how to escape ' in db
#7065
kleeflang (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Need more validation field, how to escape ' in db 1 Month, 2 Weeks ago Karma: 0  
Hello all,

I have two questions on validation.
1. I use a lot of fields, now there isn't enough room in the admin to fill them al in the not-blank validation. Is there a way to expand this?
2. If a user input has a ' the form doesn't get saved to the db. The e-mail is fine though (\', is there a way to filter out the ' before it's send to the db?

Thanks,

Krijn
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7070
GreyHead (Admin)
Admin
Posts: 2168
graph
User Online Now Click here to see the profile of this user
Re:Need more validation field, how to escape ' in 1 Month, 2 Weeks ago Karma: 44  
Hi Krijn,

1) You need to look for a block of code like this in admin.chronocontact.html.php:
Code:

<tr> <td><?php echo mosToolTip( REQUIRED_TT ); ?></td> <td><strong>1 - <?php echo REQUIRED; ?></strong> </td> <td></td> <td> <input type="text" name="params[val_required]" id="params[val_required]" class="inputbox" size="50" maxlength="500" value="<?php echo $paramsvalues->val_required; ?>"> </td> </tr>
You can change the maxlength value to something bigger (looks as though I've already edited this one from CF for Joomal 1.0.x 2) in the Autogenerated tab replace $_POST['fieldname'] with addslashes($_POST['fieldname']) I think that should do it. Bob<br><br>Post edited by: GreyHead, at: 2008/03/29 00:02
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials