calling a .php file
Posted: Tue Sep 19, 2006 1:53 am
Hi all,
I’m working on my first PHP project – fill a form, email details to me, trigger a force download. All the main components work, just need to fit them together
I have a normal HTML page with a number of fields. Submit calls a .php page which checks the fields for user input, if >0 a email is dispatched to me. I have another .php page which starts a force download. Thing is how do I call this page from the end of the first script page?
It has to be after the Email check script, which means it’s in the body so I can’t use headders or page divert. A manual hyperlink (as a way of testing) works just fine, but how to I call a automatically call a URL? fopen() appears to open and READ the file, calling the page via echo”URL” also fails.
It can’t be that difficult can it?
Hope you can help
Many thanks
Giles
I’m working on my first PHP project – fill a form, email details to me, trigger a force download. All the main components work, just need to fit them together
I have a normal HTML page with a number of fields. Submit calls a .php page which checks the fields for user input, if >0 a email is dispatched to me. I have another .php page which starts a force download. Thing is how do I call this page from the end of the first script page?
It has to be after the Email check script, which means it’s in the body so I can’t use headders or page divert. A manual hyperlink (as a way of testing) works just fine, but how to I call a automatically call a URL? fopen() appears to open and READ the file, calling the page via echo”URL” also fails.
It can’t be that difficult can it?
Hope you can help
Many thanks
Giles