auto detect position

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jennyxxx
    New Member
    • Nov 2021
    • 1

    #1

    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
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 656

    #2
    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
    Code:
    //read form data
    
    if($no_of_trips > 20) {
     $type = 'permanent'
    } else {
     $type = 'temporary'
    }
    
    //insert into database

    Comment

    Working...