Hi lads,
Just wondering if anyone culd help me.
I have a file form.php. This has checkboxes and textfields etc in it.
When the form is processed it directs to process.php where it checks for errors and shows them.
What I want to be able to do is to show the form.php under the errors in the process.php form IF there are any errors.
Anyone be able to shed some light on this ? Is this the include() function?
Thanks,
Dave
Output another X.PHP file on Y.php
Moderator: General Moderators
Re: Output another X.PHP file on Y.php
Simple answer is - almost certainly yes! You do want to use the include if your aim is to pull in a section of HTML / PHP and execute.
However, if you're "form" PHP file contains a FULL HTML document, eg: <head></head> etc.. then you will have a problem. It really depends on exactly what the files contain.
Suggestion -> try it!
Dave
However, if you're "form" PHP file contains a FULL HTML document, eg: <head></head> etc.. then you will have a problem. It really depends on exactly what the files contain.
Suggestion -> try it!
Dave