473,396 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Nov 17 '21 #1
1 7054
dev7060
636 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
Nov 18 '21 #2

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

Similar topics

1
by: steve | last post by:
How can I detect in php that I am running from CLI (command line), and not the browser. I hate to put a constant in each script: e.g. define(’CLI’, 1)... -- http://www.dbForumz.com/ This...
0
by: Hank | last post by:
Hi, I am writing a windows service application which manage image capturing device in C#.NET. When the service is running, how it automatically detect when there is a new device plugged in (say...
1
by: Aaron | last post by:
Hello, I am currently running a dos based FTP commands to grab a file at a certain time and then it imports it into access and updates accordingly. The problem is that I have this set to run at...
1
by: Grzegorz Kaczor | last post by:
Hello, I wanted to use Response.TransmitFile to return an image instead of a HTML page. Under IE everything works well, but under Mozilla/Firefox the image is treated as it were text/html. ...
3
by: Charlie | last post by:
In the top portion of the DateTimePicker, where the value of the date is displayed, how can I detect whether the month or day or year is currently focused, or, if ShowCheckBox = True, whether the...
1
by: Steve.Goodman | last post by:
Appologies if this has already been asked, but after scanning the web and this news group I could find no decent solution. We have a windows App that calls a webservice, using this bit of basic...
11
by: mp- | last post by:
I want to be able to allow people to check their email from my PHP online application. Given only the users 1) email address, 2) username (if applicable) and 3) password - how can I auto detect...
11
by: jellychai | last post by:
I'm doing the final year project that related to the SNMP. I need to find the solution for the IP auto detection in C#. When I run the main project, the program can automatically detect the IP for...
1
by: azura | last post by:
how can i get this textfield auto detect?? because i try not to using view name button... i want when i enterd this matric no., the student name will appear automatically when i insert the matric...
6
by: patricktn | last post by:
Hi, In Windows programming, there is a built-in function to get MSSql database server names and connect to it without needing to know the port numbers. Is it possible to do this in Java...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.