😕
Hello,
I am very new to PHP.
However, I have great familiarity with Paradox 3.5 (PDX) (for dos) application development, this used near C++ scripting syntax. My partner and I developed a turnkey PDX application for a company called "Groceries & More". The app did everything except driving the delivery truck. Use your thinker and you can see how complete this application is. It used a menu-driven system with databases, of course, automatic inventory and order processing (a terrific program). BTW, if anyone needs help with such a program, I could clip some portions of my scripts and email it, if needed.
Also, I have used batch file programming to automate many of my computer tasks since 1987.
All this to say, that I am not inept at programming.
My configuration:
- My server is Lynx / Apache / PHP 4.2.1 installed
- I author HTML 4.01 Transitional (validated)
- I use PHP 4.2
My current situation:
I have written a email program in php and, may I remind you again, in v4.2.
The script uses conditional if-elseif to validate the form output and, based on the conditions, sends the email with the information the form collects OR produces a error message stating that the required fields on the form were not entered.
What is lacking:
After the conditional if-elseif, the program currently sends emails regardless of the condition, however, these emails lack the required information.
Explanation:
The elseif needs to instruct php to skip the send email section and print the error message (the error message DOES print, however, as I mentioned earlier, the emails are sent in their incomplete form.) How do you stop the script from executing the remainder of the script after a condiction has not been met (or how do you give php two separate instructions within the same conditional argument, i.e. print or echo my comment AND goto line number 111, for example, and execute the instructions from that point to the end of the file?)
Even, batch programming has features for goto line number!!
:mad: I have searched the entire web looking for the information to accomplish this simple task.
😕 I have also tried to find valid and well-written instructions for writing my own functions (my information tells me that php allows user creation of functions, but I can find no REAL information that can help me with this task.) And, please, don't send me to the manual. It doesn't help! The manual lacks context description.
Any and all self respecting instructional documentations will offer an index, and context ( for any of you who don't understand what I mean by context, it is the instructional layout, i.e. all italic text is instructional only and should not be entered into the code - the like).
If someone knows where to find this context information in the manual, I certainly would appreciate where to find it. Without it, all the instruction is absolutely confusing to any newbie.
Reference [(above) Explanation]:
Any truly useful information anyone can provide for me will be greatly appreciated and could be rewarded, i.e. one free license for the software I am creating with the php script I am writing. the free license would be based on how valid and useful the information I receive is and probably limited to one to three responses.
Respectfully Yours, 🆒