close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


HOW? Display a form until a set number of submissions is reached

Thread began 8/09/2011 12:06 pm by lee341019 | Last modified 8/11/2011 7:38 am by Jason Byrnes | 1306 views | 3 replies |


HOW? Display a form until a set number of submissions is reached

I am not sure if this is possible, but is there any way to build a submission form (to enter a competition for example) that displays UNTIL 100 entries have been received? Once 100 entries have been received the form no longer appears/another page is shown etc. to stop further entries.

Strange request, but I am really struggling to find a way to do this.

Any help greatly appreciated.



Sign in to reply to this post

Jason ByrnesWebAssist

each time the form is supmited, you would need to use an insert recrd behavior to store the form contents to a database table.

you could then create a recordset that will return all records from the table:

SELECT * FROM tableName

the number of rows returned by the recordset will be stored in a variable created named:

where <recordsetName> is the name of the recordset.

you could use an if statement around the form:

<?php if($totalRows_<recordsetName> < 100) { ?>

form code
<?php ?>
Sign in to reply to this post


Thanks for that. Next question!
Is it possible to do this on a daily basis?

ie. allow 100 entries per day, then display a 'Please try again tomorrow' message?

Sign in to reply to this post

Jason ByrnesWebAssist

create a new column in the database and name it submitDate.

add a hidden element to the form and set the value of it to:

<?php echo(date("Y-m-d")); ?>

in the insert behavior, bind the submitDate column to the hidden form element.

then change the recordset to

SELECT * FROM tableName WHERE submitDate = curdate();

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...