php- auto submitForm?
Posted: Sun Mar 16, 2008 2:06 pm
I am trying to make a php application submit a form from within a script & have tried as following code shows but am just getting a blank page afterwards
(I've also tried adding- if($amount==0)return submitForm(); but this gives an unexpected Tvariable message & then- if($amount==0) $this->body .="return submitForm()\n"; this allows the script to carry on but makes no difference)
Any ideas as to how to go please would be much appreciated
Code: Select all
$this->body .="<br /><input type=\"submit\" name=\"z\" ";
//$this->body .=
"onclick=\"return checksubmit(this)\"";
// added here//
if($amount==0)return submitForm;
// added end// Any ideas as to how to go please would be much appreciated