I have a script that has the code similar to the following:
if((isset($_POST['somefile']))
{
header("Location: http://www.url.com/somefile.pdf" );
}
This evaluates the selections of a form and will open the pdf file if the 'somefile' option is checked.
Now what I'm needing is basically two seperate IF statements to open two seperate PDF files in new windows.
For example, something like (except have it open each PDF in a new window...which I don't know how to do):
if((isset($_POST['somefile']))
{
header("Location: http://www.url.com/somefile.pdf" );
}
if((isset($_POST['somefile2']))
{
header("Location: http://www.url.com/somefile2.pdf" );
}
1) Is this possible?
2) How can I do it?
So when someone hits submit, I would want it to open somefile.pdf in one window, then open somefile2.pdf in another window.