Friday, March 29, 2013

“If there is something that you can determine whether you will be entered into a text box” how to write a function?


Topic created by Candiecane: How to write an “if” function to validate whether or not something is entered into a textbox?

I cannot figure out the if function. I need to write the php code to echo something on a results page if someone has written something into a textbox or not. The name is “sender_email” and I need to figure out how to echo something when someone does not enter their email into the textbox. Please help!


It will be tips about How to write an “if” function to validate whether or not something is entered into a textbox? which you might would be smart to resolve complications for themselves. Simply you will find in lots of ways: and then make your own life better. With the expectation tips about How to write an “if” function to validate whether or not something is entered into a textbox? may possibly be a simple solution down the road.

Most practical answer:


Answer by Thomas B

It’s actually rather simple when you see the code. Take a look at this code.


if ("username" == "") {

echo "Please fill in your username";

}



“If there is something that you can determine whether you will be entered into a text box” how to write a function?

No comments:

Post a Comment

Blog Archive