This topic is locked

Submit Form Via Events

11/5/2007 5:09:43 AM
PHPRunner General questions
R
roadyx author

HI, I'm able to submit a form through custom code (after record added event). I just can't get the PHP quoting for the variable $atotal
$atotal=$values["total"];
echo "<FORM action=\"https://www.blah.blah.com/lpc/servlet/lppay\" method=\"post\" name=\"linkpointid\">";

echo "<INPUT type=\"hidden\" name=\"mode\" value=\"fullpay\">";

echo "<INPUT type=\"hidden\" name=\"chargetotal\" value=\"$atotal\">";;

echo "<INPUT type=\"hidden\" name=\"storename\" value=\"storebuy\">";

echo "</Form>";

// auto-submit section next...
what is the correct quoting for $atotal? If I hardcode like value=\"2.00\", there are no issues.
Thanks in Advance!

R
roadyx author 11/5/2007

Never mind... Found an Extra /

HI, I'm able to submit a form through custom code (after record added event). I just can't get the PHP quoting for the variable $atotal

$atotal=$values["total"];
echo "<FORM action=\"https://www.blah.blah.com/lpc/servlet/lppay\" method=\"post\" name=\"linkpointid\">";

echo "<INPUT type=\"hidden\" name=\"mode\" value=\"fullpay\">";

echo "<INPUT type=\"hidden\" name=\"chargetotal\" value=\"$atotal\">";;

echo "<INPUT type=\"hidden\" name=\"storename\" value=\"storebuy\">";

echo "</Form>";

// auto-submit section next...
what is the correct quoting for $atotal? If I hardcode like value=\"2.00\", there are no issues.
Thanks in Advance!