Hi everyone
I am busy with Assignment 1.
I am trying to combine all my HTML and PHP on one document, and saving it as a PHP extension.
Am I correct in my assumption that this is more professional or preferable than doing separate HTML and Phip docs?
example: for strings section of the assignment where we need to use 10 string functions, I would have the form part where I ask the user for his input (HTML and JAVASCRIPT) as well as the PHP on the same doc, and distinguish between the 2 parts by seeing if the PHP variables are empty or not (they mos get populated by the POST part of the HTML form).
Why I'm asking, is I'm having difficulties with trying to do it so neatly.
If I use a input button to submit (instead of a "submit" button), (so I can to javascript validation of the text before I call the PHP part) I need to do "form,submit()" in order to get it to submit. But then my PHP variables are actually empty?
how to solve, that is the question.......
If I've not confused everybody now, can someone maybe point me in a direction?
regards
H Maritz