Buy Sell Discuss UK Domain Names at AcornDomains.co.uk

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:48:20 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 01-01-2012, 09:16:33 AM     #1 (permalink)

 
woopwoop's Avatar
 
Join Date: Jan 2007
Posts: 1,586
woopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond repute

form validation (unique num prefs)

This has been hurting my brain for a while - please help if you can.

I have a form that is constructed by php based on the number of items there are in a table (mysql).

The form is basically a way for me to collect user's preferences and store them in a database.

I don't know the number of options there'll be, because php finds this number out and then lists the items in a form with a small text box next to each item.
All of this works so far.

I want people to just enter a number value next to each title to indicate their preference. So if there were 15 items, users would enter 1-15 in their order of preference.

The problem is that I need validation that wont allow the form to be submitted if there are blanks, duplicates and the numbers entered must go from 1 to (however many number of items there are in the table in the db).

If anyone can help me with this I'd really appreciate it.
woopwoop is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Questioning the Registered Rights TM stage urbanvilla WHOIS ? 86 13-06-2011 05:40:41 PM
Article: "How to value a website using unique visitors" Alien Business Discussions 1 26-10-2010 11:29:07 AM
Dynamic form generator/script? wb General Board 2 12-04-2010 11:03:58 PM
unique seo minisite offer /3 review copy going cheap domain7172 Mini Sites 1 16-01-2010 05:07:32 AM

Web Hosting from UK2 from just 99p


All times are GMT. The time now is 12:48:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".