I thanks for your input - very reasonable approach.
I used your sugeestions and used
<form action = "run_main.php" target = "content" style= "btn_text" method="POST">
to run an extra program (run_main) in the correct frame.
That then selects which program to run based on the $_post
and it uses require_once to do it.
in the <body> stmt of the php that is lauched I have this:
<body onLoad="start();">
and in the <head>
I have :
<script type="text/javascript">
<!--
function start()
{
document.main_fm.x_agent.focus()
// -->
</script>
How do I rum my form.php from this function and putting it in window leftframe ?
Actually what I am trying to do is start one program in content and a diferent program in leftframe. But with the <form> I can only start one of them !
what is the best way to do it. I am not that keen on using js to do it - is there a way with php ?
Can I use header location with a frame target ?
other suggestions ?
if not how do i do it in js ?
thanks for any help !
David.