feyd | Please use Code: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I initially did it like this...following code is on my test.php file
Code: Select all
<form name="test" action="process.php" method="GET">
<input type="hidden" name="flag" value="1">
</form>
<?PHP
print("<script language=\"javascript\">");
print("document.forms[0].submit();");
print("</script>");
print(file_get_contents());
?>
============================
above didn't work, it kept directing to process.php, i did some more investigation on using file_get_contents and got it to work in a one liner as follows:
output was on test.php
print(file_get_contents("
http://domain/process.php?ssi&flag=1"));
============================
this process i will use to post billing info to a payment clearance gateway and receive an xml formatted response. having said that....above solution is far from secure. I'm also trying cURL for php...as it allows post over https
so if any of y'all have insight on installing cURL with PHP binding on windows 2003 server...i'd appreciate the help!!
Cheers!!
feyd | Please use Code: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]