News:

Join the Facebook Fan Page.

Main Menu

Accessing $_POST

Started by Egroj, February 17, 2014, 01:42:01 PM

Previous topic - Next topic

Egroj

Hi! I'm working on a mod which integrates during login process. I need to access data from the login form (cookielength) but I have found that cleanRequest() cleans $_POST. My code runs in the index, right after loadUserSettings(); and I can't access $_POST. However, functions like login2 access $_POST.

What should I do to retrieve the original $_POST variable?

I have also noticed that modsettings contains the cookielength index, but it's value seems to be always 60, no matter what I selected in the login form   ???

PD. Why needs SMF to clean $_POST and $_GET?  :o

emanuele

If you just need data from the login form why not do your coding in LogInOut.php? ???

You can access $_POST, $_GET and $_REQUEST anywhere just using them, there is nothing to do.
To give more useful informations at least an idea of the code would help, otherwise is just guessing... :(


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: