Again thats for the assist.
the original PERL code was written by a 16yr old, and worked great, admittedly the code was poorly written!
Sorry, i should have stated that I was intending to retreive POST vars.
User Profile
Collapse
-
Thanks that looks like it would work, tried something close to that but to no avail.
That first section of code I realized can be dropped all together!
After another day of sweating out code, trial and error, (lots of error) I got it to work.
Here is what I came up with, tested and works!
The var $cartMax is set earlier in the script
[PHP] for ( $x = 1; $x <= $cartMax; $x++) {
...Leave a comment:
-
Porting Perl to PHP
After a full day of attemping to port this PERL routine to PHP, I have given up on being able to do this myself, can anybody help?
...Code:for($y=1;$y<=100;$y++){ $thename="NAME_$y"; if(length(${$thename})>3){ $num++; } } foreach($x=1; $x<=$num; $x++){ $qnt="QUANTITY_$x"; $prce="PRICE_$x"; $xtnd="XTEND_$x";
No activity results to display
Show More
Leave a comment: