Page 1 of 1

Need some php help...

Posted: Wed Jan 09, 2008 5:24 pm
by Nerine
hi, new to php..
just want to ask, how to script the form to detect if certain choice is selected for 2 time?
for example:

User A fill the form and select choice "1" then
User B also fill the form and select choice "1" later
User C also fill the form but choice "1" is not available for choose...
how to script it?

-------------------Next Thing------------------------

how to generate random number or sequence number with character?
do i need database or ?


please help...
thank...

Posted: Wed Jan 09, 2008 6:54 pm
by Lixas
random:
[php]rand(0, 100); //it will generate random number from 0 to 100[/php]And about forms:use database so save data how much times item is selected and before creating that form, check it in database

Posted: Wed Jan 09, 2008 11:46 pm
by thetarget
Nerine, we can't help you if you give us so only so much information. Tell us the conditions, why user C is unable to choose the option.

Posted: Thu Jan 10, 2008 1:17 am
by Nerine
need to limit the choice..
each choice only can have 2 people select it...

need it since it was related to delivery product...
the choice is the time the user can choice whether they want the product to delivery at what time..
and since only can delivery product for 2 people in same time so need to limit the choice....

php

Posted: Fri Jan 25, 2008 10:46 am
by Gebbo
http://www.pixel2life.com thats a good souce for tutorials..

a question

Posted: Thu Feb 26, 2009 9:47 pm
by arash
how do day make cmss and scripits and from where we can learned it?

Scripts

Posted: Tue Mar 03, 2009 3:52 pm
by Gebbo
arash wrote:how do day make cmss and scripits and from where we can learned it?
I just quoted above a website, above this post >_> might want to check that out..

Posted: Thu Mar 05, 2009 9:53 am
by Alwahsh
Lixas wrote:random:
[php]rand(0, 100); //it will generate random number from 0 to 100[/php]And about forms:use database so save data how much times item is selected and before creating that form, check it in database
nice code , thank you very much