Posted: Mon Aug 20, 2007 9:41 pm
actually the code that i posted was the section before validating your form. she does have a section on that; however, she makes it kind of confusing.
Up until now, she has you build two files - one an html file and the other a php file that does the scripting. In the section on form validation however, she has you build one file - a php file and create your entire form as a variable and add a bunch of if and else statements that send up red comments if data isn't entered. Is that normal to build only one file? or can you do form validation when you have two files? Maybe not...since the original file is html and you need to do the form validation in php......
Up until now, she has you build two files - one an html file and the other a php file that does the scripting. In the section on form validation however, she has you build one file - a php file and create your entire form as a variable and add a bunch of if and else statements that send up red comments if data isn't entered. Is that normal to build only one file? or can you do form validation when you have two files? Maybe not...since the original file is html and you need to do the form validation in php......