chrometweaks.org

Where can I get cheap iPage web hosting?

Click Here To View All Answers...


My 1st question is: Where can I get cheap iPage web hosting? Thanks in advance for any answer. Second question.. I try to modify the tep_get_all_get_params() function to get the values of the $_GET variables when are 'arrays' insead 'single' values..

(For example, when you submit a form with a select field with a 'multiple' option you get a array insead a single value)..

As you know it work well if you want to reproduce a urls like:.

XXX.php?action=delete&id=22.

But if I have some like this:.

XXX.php?action=delete&id%5B%5D=22&id%5B%5D=23.

This function don't work at all because the value of 'id' is an array with values id[0]=22 and id[1]=23.

When I try to use in a new script that uses:.

Tep_href_link(FILENAME_XXX, tep_get_all_get_params()).

To jump to the same file but with the $HTTP_GET_VARS (some of them Arrays) don't work..

I try with this:.

But it don't work..

Any ideas?.

All the best..

Antonio..

Comments (4)

I'm stumped. I'm not so sure what is the answer to that question. I'll do some investigation and get back to you if I got an anything. You should email the people at iPage as they probably could help you..

Comment #1

A function was recently added to CVS to take care of such situations, and can be found at the bottom of the following page:.

Http://cvs.oscommerce.com/viewcvs.cgi/admi...=1.167&r2;=1.168.

The osc_sanitize_multidimensional_array() function also takes care of multidimensional arrays..

Hope that helps!..

Comment #2

Dear Dave:.

Thanks for the corrected script!.

It work well!.

I really are unable to find the right solution until I found at.

Using HTML forms with PHP. Access single and multiple form values.

A good tutorial about this 'problem' and also there are a script that solves this, but I put your code into our general.php because is 'more osCommerce coding' that the other....

Thanks again.

Dear Harald:.

Thanks for the info you supply..

I understand that this info are not to solve my problem but to inform to all thas this 'problem' are now covered by new code (that I are unable to use it because I use a MS2.2....)..

All the best..

Antonio..

Comment #3

HI hpdl,.

Thats a nice function but what about $exclude_array and urlencoding?..

Comment #4

Hi Antonio ,.

I think you are on the right track but just use print_r() to inspect the array next time..

Echo '<pre>'print_r($HTTP_GET_VARS)</pre>;..

Comment #5


This question was taken from a support group/message board and re-posted here so others can learn from it.