[PHP] Re: Submit code
here's an excerpt from a script in which I do something like that: $pdArgs= "demo=" . urlencode($argAry['demo']) . "&" . "first_name=" . urlencode($argAry['first_name']) . "&" . "last_name=" . urlencode($argAry['last_name']) . "&" . [. . .] $URL= "https://HOST.DOMAIN/SCRIPT.php";; exec("/usr/bin/curl -m 120 -d \"$pdArgs\" $URL -L", $httpResponse, $exitCode); if ($exitCode != 0) { header ("Location: error.php?code=" . urlencode("https: failure. Exit code is $exitCode")); exit; } -- When the birdcage is open, | donate to causes I care about: the selfish bird flies away, |http://svcs.affero.net/rm.php?r=leed_25 but the virtuous one stays. | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Submit code
Algorithmically: //in php 1) create a counter that will keep count of the # of variables that have been set 2) if all your variables have been set spit out the relevant JavaScript that runs the AutoSubmit function... (There are a couple onLine)... ... It can follow the following Skeleton... if((isset($var1))&&(isset($var2))&& echo "The JavaScript... Could Taget write it to another file as opposed to spitting out HTML run the function onLoad..."... "Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking for PHP code that will submit (post) a form automaically to a > ANOTHER php page. I do not want to press a submit button. I have found a > class at PHPClasses but it is too complicated for my needs. What is the > simplest way of doing this? What is the theoretical approach? > > The reason I need this is that I have a table output from a database after > one submits 'n list of variables (form inputs). I want to update a graph in > another Iframe automatically without clicking on another submit button. > > Tx > MH > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Submit code
> I am looking for PHP code that will submit (post) a form automaically to a > ANOTHER php page. I do not want to press a submit button. I have found a > class at PHPClasses but it is too complicated for my needs. What is the > simplest way of doing this? What is the theoretical approach? I think the only way to submit a form automatically is with JavaScript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php