Here are the details:
- I'm a green PHP guy.
- I have a frame enabled page
- Frame one is a php script that asks for user input. I want it to then display a page in the 2nd frame called CONTENT.
- How do I show a url targeting a specific frame from a php script.
- Yes..I know <A HREF=filename target=framename></A> But...look at how the script works.
- I'm desparate. PLEASE HELP ME.
Thanks in advance.
Christian
<?php
if (!$filledout) {
echo ("
<head>
<title>Javacript Calendar</title>
<script language=\"JavaScript\" src=\"ts_picker4.js\"></script>
<script language=\"JavaScript\" src=\"ts_picker4x.js\"></script>
</head>
<body bgcolor=\"#ffffff\">
<form name=\"tstest\" action=\"$PHP_SELF\">
<table border=0 width=\"100%\" > <tr align=center> <td> Select Region: ");
printf ("<select name=\"region\">
<option value=\"\"></option>
<option value=\"GG-ALB\">Albany</option>
<option value=\"GG-SYR\">Syracuse</option>
<option value=\"GG-ROCH\">Rochester</option></select>");
printf ("</td><td>");
printf ("Select Report: ");
printf ("<select name=\"report\">
<option value=\"\"></option>
<option value=\"MSLP\">Multi-Store Labor Productivity</option></select></td><td>");
printf ("Select Date: <input type=\"Text\" name=\"date_am\" value=\"%s\">", $date_am);
printf ("<a href=\"javascript:show_calendar4('document.tstest.date_am', document.tstest.date_am.value);\"><img src=\
</td><td><input type=\"hidden\" name=\"filledout\" value=\"1\">
<Input type=\"submit\" value=\"Submit\"></td>
</tr>
</table>
</form>
</body>
");
} else {
$pat = "-";
$date = split($pat, $date_am);
if (strlen($date[0]) < 2) {
$date[0] = "0$date[0]";
}
if (strlen($date[1]) < 2) {
$date[1] = "0$date[1]";
}
$date[2] = (substr("$date[2]", -2, 2));
$filename = "$region";
$filename .= "";
$filename .= "$report";
$filename .= "";
$filename .= "$date[2]$date[0]$date[1].pdf";
// This is when I want to show the
// $filename in the CONTENT frame of my
// page. HELP!!!! How do I show the
// $filename and target the frame?
}
?>