Jump to content

Archived

This topic is now archived and is closed to further replies.

otuatail

how to tell if a textbox is empty on submit

Recommended Posts

if($POST['F_Name'] != "")
	echo $_POST['F_Name'];
else
	echo "No F name";

	
if(trim($POST['F_Name']) != "")
	echo $_POST['F_Name'];
else
	echo "No F name";

if(trim($POST['F_Name']) !== "")
	echo $_POST['F_Name'];
else
	echo "No F name";


I have tried all combinations

 

 

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.