I am a beginner here with PHP , but trying to make a simple script for work.
Basically I have this page > http://jmdostal.com/route2.php thats a simple form that can be filled out, and on the next page it puts the information into a format , (feel free to go to the page above to see what im talking about)
such as -
DRIVER NAME - TRUCK
Job 1 [Delivery] [City] - Items
Job 2 [Delivery] [City] - Items
Job 3 [Delivery] [City] - Items
[][] -
[][] -
[][] -
DRIVER NAME - TRUCK
Job 1 [Delivery] [City] - Items
Job 2 [Delivery] [City] - Items
Job 3 [Delivery] [City] - Items
[][] -
[][] -
[][] -
I have in the php code to add the [ ] so that its in the right format, such as
$city25 = “[”. Trim(stripslashes($_POST[‘city25’])) . “]”;
My question is -
How can I make the script not post anything if there are no values entered in the form?
As you can see I have 8 lines, in case we have 8 jobs that day, but if there are only 3 jobs , then I have all of these
[][] -
[][] -
[][] -
on the next page
Hopefully I have explained this well
Any suggestions? Appreciate any help!