View Full Version : Form GET variable type
10-31-2006, 09:52 PM
11-01-2006, 01:15 AM
$number = $_POST['inputBox'];
Code you want to run if number was inputted
Code you want to run if number was NOT inputted
Is that what you're after?
11-02-2006, 05:33 PM
So the is_numeric function will tell me if the value of a string variable is actually a number?
Finds whether the given variable is numeric. Numeric strings consist of optional sign, any number of digits, optional decimal part and optional exponential part. Thus +0123.45e6 is a valid numeric value. Hexadecimal notation (0xFF) is allowed too but only without sign, decimal and exponential part.
might also want to take a look at http://php.net/filter
11-02-2006, 06:45 PM
Hmm... seems like I could make that work for me. Thanks guys.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.