| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
|
these scripts only work if input type="button" not input type="submit". indexu simply refuses to submit it the input type is set to button. from what i can gather if the script was working with input type="submit" the user would recive the minimum ammount of character warning acordingly BUT the form would still submit anyway. ![]() I have tried two scripts now but they require input type="button" to be enabled. ![]() The next problem when i get this working will be knowing how to apply this to more than one <textarea> good things come to those who struggle |
| ||||
| Code: Content visible to License Owner only.
__________________ FSGDAG | IndexU Hosting | Owner Website | NiceCoder Script Hosting and More! | Blog General Directory | Deep Links Directory | Bidding Directory |
| ||||
| Code: Content visible to License Owner only. if you are looking for characters, you can use javascript (getElementById) to test the length of field and change your onsubmit to return a true / false value. something like onsubmit="javascript:return ValidateMinFields(this)". Test as many fields as you like. If one fails the test, popup an alert message and the form is not submitted. if you are testing for a minimum number of words, you will need to use the javascript split function instead of the length function. then in the add.php/modify.php test the fields again using the PHP explode function to test for words or the strlen function to test for characters. (NEVER RELY SOLELY ON JAVASCRIPT TO VALIDATE A FORM). If they don't pass the test there, send the user back to the form with the appropriate message. .
__________________ esm "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology." . |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Importing large amount of data in a pre-existing database | aladdin1 | v5.x | 8 | 06-16-2007 03:51 PM |
| Minimum soze of the description | linksor.com | Blocks and Modification | 5 | 05-07-2007 03:16 AM |
| Amount of links displayed per page. | lewisw | v3.2 | 3 | 08-18-2003 07:12 PM |
| Ratings, limiting amount or deleting? | starchdoggy | Pre-Sales Questions | 3 | 09-08-2002 02:33 PM |
| Hot links ! Amount ? | Nanard Of Web | Pre-Sales Questions | 1 | 07-24-2002 02:30 PM |