View Full Version : Check to see if post
02-26-2007, 02:36 AM
What is the query to run to basically to see if a value was posted in "username" ... basicly here is what I need to do
If ANY value is posted to Username ($_POST['username']) , dont do anything.... if there isnt a value posted to username header("location: http://google.com");
02-26-2007, 02:52 AM
02-26-2007, 03:06 AM
hm... is that to make it header: location if there ISNT anything posted? because that is what I want to do... if there is something posted, dont do anything...
02-26-2007, 03:13 AM
That will make it so that if nothing is posted to username it will go to that url.
02-26-2007, 03:24 AM
If the input field is a type="text", it will be set to an empty string upon submission. An isset() test of this type of input field will always be TRUE.
You should use the empty() test or test it against an empty string ""
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.