I am developing this site: http://www.goldwriters.info and i need a script for the ordering page (http://www.goldwriters.info/order.php), I planned on making a mailing form to receive the customer application. I have the script file, made by me... but unfortunately its not showing, you may think i didnt include it in order.php but i did with this: <?php include "mailform.php"; ?> PHP: Any help is appreciated, if you have any other idea on the ordering system, tell me please I uploaded the two files so you can check them with time. Thanks
i dunno, should you have headers on the mailform. If you include that in the page you now have two sets of headers, you don't need the headers I don't think twice, the include should just be the html and php required to display the form.
Hi, It is not showing the form because the script is running in a never ending loop, did you not notice that the order page never stops loading??? At the moment your order form loads and requests mailform.php, this then runs through the error check on line 18, the error check fails which re-includes the mailform.php and so on and so on and so on. You need to perform error checking AFTER you have validated that the form has been submitted. If the form wasn't submitted why error check?
Yay!! Its showing now... the only problem is that it doesnt stop... i mean, it wont stop loading the mailform.php... means that there will load infinite times...