southbeach
Programmer
Sorry for the confusing subject line!
The problem:
I want to load a PHP page and get back what would be the equivalent of having submitted the form within the page, not the form itself ...
I have
The code for push2web.php looks like this
I do not want to see the <form> tag and the <input> tags, I want whatever is returned upon submitting form.
Is this possible?
;-)
Thanks,
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
The problem:
I want to load a PHP page and get back what would be the equivalent of having submitted the form within the page, not the form itself ...
I have
Code:
$filename='/merge/jlweb2php'.rand().'.htm';
$_SESSION['jlweb']='qual=&name=demo&wxyz=xyz&sys=t3&proc=jlweb&type=view&jlweb_fn=goinput&jlweb_ky='.$string.'&jlweb_ix=C&jlweb_pg='.$filename.'&jlweb_xt=Y';
$jlweb=getResolved('/merge/push2web.php');
function owcFile($filename,$string) {
//
// Open Write Close File - Given $filename, open $filename with write/append mode then write $string and close $filename...
//
$file=fopen($filename, "a+"); // Open file to write to
$fout=fwrite($file, $string); // Write line of text with parameters info
close=fclose($file); // Close file to prevent problems down the road ...
}
function getResolved($page) {
ob_start();
include $page;
$content = ob_get_contents();
ob_end_clean();
return ($content);
}
The code for push2web.php looks like this
Code:
<form name="jlweb" id="jlweb" action="route.cgi" method="post">
<?php
// Lets explode url_string to build an array we can use ...
$formVals = array();
$exp1 = explode('&', $_SESSION['jlweb']);
foreach ($exp1 as $key=>$val) {
list($name,$value)=explode("=", $val);
echo '<input name="'.$name.'" id="'.$name.'" value="'.$value.'" type="text" />'; }
?>
</form>
<script type="text/javascript">
$(document).ready(function(){
$('#jlweb').submit();
});
</script>
I do not want to see the <form> tag and the <input> tags, I want whatever is returned upon submitting form.
Is this possible?
;-)
Thanks,
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.