If Else Statement / PHP Form

Codes here !

Moderators: macek, egami, gesf

Post Reply
php9
New php-forum User
New php-forum User
Posts: 13
Joined: Fri Feb 22, 2013 2:20 am

Re: If Else Statement / PHP Form

Post by php9 » Fri Feb 22, 2013 3:13 am

Well you can check if the user entered some content into a field using:

Code: Select all

if(!empty($_POST['something']))
{
    // user entered some content
}
Using that you can have your script only do the insert when there is some content.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests