469,612 Members | 1,673 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

auto detect position

Hello, i want to set an auto detect registration form where the driver can only be permanent driver if he/she has >20 no of trip or else he/she is temporary. But i dont know how to do. im using html php
2 Weeks Ago #1
1 6501
dev7060
518 Expert 512MB
Hello, i want to set an auto detect registration form where the driver can only be permanent driver if he/she has >20 no of trip or else he/she is temporary. But i dont know how to do. im using html php
What do mean by "auto detect registration form"? What are the input fields? You may need something like this
Expand|Select|Wrap|Line Numbers
  1. //read form data
  2.  
  3. if($no_of_trips > 20) {
  4.  $type = 'permanent'
  5. } else {
  6.  $type = 'temporary'
  7. }
  8.  
  9. //insert into database
2 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by steve | last post: by
1 post views Thread by Grzegorz Kaczor | last post: by
3 posts views Thread by Charlie | last post: by
1 post views Thread by azura | last post: by
6 posts views Thread by patricktn | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.