| |||
|
Hi, this is a rough guide to adding AJAX field validation. firstly, a new file, uploaded to the main indexU folder, copy this, and save it as "post_url.php" Code: Content visible to License Owner only. at the top add this : Code: Content visible to License Owner only. Code: Content visible to License Owner only. ![]() Im using it ont he admin panel when i add sites - i can see straight away if its a duplicate.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) Last edited by inspireme; 05-08-2008 at 06:11 AM. |
| |||
| Code: Content visible to License Owner only.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
Hmm, well it seems im very bad at explaining myself, people are confused. SO... try this : http://www.theleisureguide.co.uk/add.php go to the "url" bit type in a url and defocus theurl box (click somewhere else) it should say its okay to add the site. Now type in : http://www.activityuk.com/ It should say its a duplicate.... Hope it makes more sense now.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
you can also try the postcode, type anything random in and it will say "thats fine" and then type this : BN9 9DS And it will tell you its already added.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
| |||
|
But if you sail in without "/" , then he does not see as twice. Thus, with a sign less or more, then have no impact. I have added exactly these, therefore without "/" on end. He accepts directly http://www.activityuk.com |
| |||
|
Yes... its to tell people not to add sites again... but as i said int he first post this is a method to do things, you can write whatever php code you want to validate the field. In the example i gave before you could change the sql query to say LIKE $url% and then it would warn about any page within the domain... Im nto saying this is a workign example. just useful code to help peopel with feedback and messages as they fill in the form.
__________________ Some interesting INDEXU bits :http://www.indexu.co.uk Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| free templates | stephborel | Templates | 3 | 11-30-2007 01:21 PM |
| Free Version | banless | Indexu Lite | 2 | 05-19-2007 08:20 PM |
| Free homepages | Hart_House | v5.x | 2 | 04-04-2002 08:28 PM |