I'd like advice on how to best accomplish this task.
1) I need to post data to a site (I won't know what the site URL is until in the middle of the PHP script processing). This is not about posting and getting back results directly. The user must be transferred to the site where they will enter information there.
2) I have use of Smarty (no cURL) but I don't have to use it. I don't know how to use frames with Smarty. The HTML content example below uses JavaScript to post. I don't think fsockopen() helps in this situation, or does it?
3) It must be framed.
4) It must be over SSL (HTTPS).
5) I need to specify the values for field1, field2, field3, and the forms action URL (see the frame content below) from within the PHP script before posting.
Since the frame HTML is what needs to be sent to the browser, how is it best to specify values in the content html (item # 5 from above)?
Frame HTML:
<html>
<head>
</head>
<frameset rows="15%,*" border="0">
<frame id="banner" name="banner" src="banner.html" frameborder="0" scrolling="no">
<frame id="content" name="content" src="content.html" frameborder="0" scrolling="auto">
</frameset>
</html>
Banner HTML:
<html>
<head>
</head>
<body>
Banner Area stuff
</body>
</html>
Content HTML:
<html>
<head>
<title>Process Transaction</title>
<SCRIPT LANGUAGE="Javascript">
function OnLoadEvent()
{
document.postForm.submit();
}
</SCRIPT>
</head>
<body bgcolor="white" background="white"
onload="OnLoadEvent()">
<form name="postForm" action="https://www.posting_site.com" method="POST">
<noscript>
<br/>
<br/>
<center>
<h1>Processing your Transaction</h1>
<h2>JavaScript is currently disabled or is not supported by your
browser.<br/></h2>
<h3>Click <b>Submit</b> to continue processing your transaction.</h3>
<input type="submit" value="Submit"/>
</center>
</noscript>
<input type="hidden" name="field1" value="https://www.example.com/script"/>
<input type="hidden" name="field2" value="valuehere"/>
<input type="hidden" name="field3" value="anothervaluehere"/>
</form>
</body>
</HTML>