PHP Forums Archive

Undefined index query string in update_user_profile

Tags: access_user, query string, Undefined index

clement posted on 2008-12-18 21:54:59 #

Hello,

I have a problem with the access_user class. I keep getting the following error in my page: Undefines index: query string in .....classes/access_user/update_user_profile on line 6:
$update_profile->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']);

How can I solve this?

greetings, Paul

Comments / discussions

Olaf posted on 2008-12-18 21:56:53 #

just test the variable first or shut down warnings (as normal on production servers)

clement posted on 2008-12-19 10:14:36 #

Hi Olaf,

Thank you for your quick response. Shutting down the warnings works (the variabele has it's data).

Another question, concerning the combination of access_user and the db_cart. There are allready some itmes on this topic in the forum, but it still isn't clear to me. Where do i need to adjust what? (I'm still using the same file names as in your examples)
Paul

Olaf posted on 2008-12-19 10:38:50 #

Hi Paul,

there is no "out of the box" solution at the moment.

Look start with the db_cart script and at the moment where you need to enter the shipment data you need to combine both classes. Both scripts are not related too each other but you can use them in one application.