<?php //Define Variables $FirstName = $_POST['FirstNameTextBox']; $LastName = $_POST['LastNameTextBox']; $PhoneNumber = $_POST['PhoneNumberTextBox']; $EmailAddress = $_POST['EmailAddressTextBox']; $Address = $_POST['AddressTextBox']; $City = $_POST['CityTextBox']; $State = $_POST['StateDropDownBox']; $Zip = $_POST['ZipTextBox']; ?>
I was planning on using if else statements. For example:
if FirstNameTextBox == NULL
(coding for an error message that I am unsure of)
elseif LastNameTextBox == NULL
(coding for error message)
and so on...
Am I correct in using this approach?? As you can see all my code is pretty much vb language. I've been researching this for a while and can not figure out the most simple way to do this using these statements. Any help you professionals can lend to a beginner is appreciated greatly!
This post has been edited by CTphpnwb: 24 October 2010 - 06:37 PM
Reason for edit:: User failed to read the rules and use code tags!