Need some php help...

Any problem with PHP can be disscused here
Post Reply
Nerine
Posts: 7
Joined: Fri Jan 13, 2006 8:27 am

Need some php help...

Post 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...


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post 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
Image
thetarget
Posts: 496
Joined: Sat Jul 09, 2005 9:10 am

Post 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.
Nerine
Posts: 7
Joined: Fri Jan 13, 2006 8:27 am

Post 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....
Gebbo
Posts: 554
Joined: Tue May 16, 2006 3:22 pm

php

Post by Gebbo »

http://www.pixel2life.com thats a good souce for tutorials..
.............................:: Spirit of Fire ::..................................

Image
arash
Posts: 12
Joined: Thu Feb 26, 2009 9:21 pm

a question

Post by arash »

how do day make cmss and scripits and from where we can learned it?
Gebbo
Posts: 554
Joined: Tue May 16, 2006 3:22 pm

Scripts

Post 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..
.............................:: Spirit of Fire ::..................................

Image
Alwahsh
Posts: 292
Joined: Sat Aug 16, 2008 7:05 am

Post 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
I got my Power Package
My website is here
My Forum is here
:D:D:D:D
Post Reply