Forum Moderators: coopster
If I were posting to his, I'd use MS XML object. Take data submitted by the browser, append needed values, use the XML object to post to another server, wait for response, then write response to the browser.
Is there an equivalent in PHP/Linux? Something that will allow server-to-server POSTs? Thanks in advance for the help.
//init vars here. set $goURL to url to post to
print "<html><head>
<script>function ReLoad(){
document.FORM.submit();
}
</script></head>
<body OnLoad='ReLoad();'>
<form name='FORM' action='$goURL' method='post'>
<input type='hidden' name='MonthA' value='$MonthA'>
<input type='hidden' name='DayA' value='$DayA'>
<input type='hidden' name='YearA' value='$YearA'>
//blah, blah move vars...
<input type='hidden' name='$listtype' value='$listtype'>
<input type='hidden' name='tab' value='$listtype'>
<INPUT type=hidden value=Y name=list>
<INPUT type=hidden value=find_dates name=act>
$idline
</form>
</body>
</html>";
I had a similar dilema. This is what I came up with for my situation. I couldn't find a cleaner solution. Anotehr solution I "thought" I remember reading about was the CURL functions in PHP - you might check those out too, I'm not familiar with CURL so I'm not sure.
baze