![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I have a form where I need to validate the user is not repeating values already in a database table that has two primary keys. Thus I need two fields from the form to check but I only see this in examples: function f ($element_name,$element_value){ } Using quickform, how can I check two form fields in ONE function? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com | |||
|
| | #2 | ||
| On 5/3/07, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote: > I have a form where I need to validate the user is not > repeating values already in a database table that has > two primary keys. Thus I need two fields from the > form to check but I only see this in examples: > > function f ($element_name,$element_value){ > > } > > Using quickform, how can I check two form fields in > ONE function? > Please only send one copy of your messages to the list. It looks like rules in general are assumed to relate to one field but rules such as the built-in Compare take 2 fields. Try checking that one. -- Justin Patrin | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: check, fields, function, quickform, registerrule, two, using |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MDB2 - disregard - meant catching Quickform error: => custom rule | l Burnerheimerton | Pear | 0 | 05-20-2007 5:34 PM |
| call to undefined function curl_init() | Henk oegema | PHP | 1 | 05-20-2007 5:33 PM |
| Function tables | ZeldorBlat | PHP | 2 | 05-20-2007 5:33 PM |
| Function tables | Beshoo | PHP | 0 | 05-20-2007 5:33 PM |
| Basic Usage Of Php Mail Function | Whatcha | PHP | 3 | 05-11-2006 1:46 AM |
| Featured Websites | ||||
|