Log in

View Full Version : How to read variables from POST with VB


mihai11
07-18-2007, 10:38 AM
Hi,



I could use a standard mechanism for reading variables from POST like this one:

if (isset($_POST['action'])) {
$action = $_POST['action'];
}

But I saw in several VB files that instead of this, some functions get called:

$vbulletin->input->clean_gpc('r', 'goto', TYPE_STR);

Is there a tutorial about reading variables with POST in VB ?



Regards,
Razvan M.

Looks like the scripts are using this:


http://members.vbulletin.com/api/vBulletin/vB_Input_Cleaner.html

Attilitus
07-18-2007, 05:17 PM
Here is an excellent tutorial on input cleaning with vbulletin: https://vborg.vbsupport.ru/showthread.php?t=119372

mihai11
07-18-2007, 05:38 PM
Here is an excellent tutorial on input cleaning with vbulletin: https://vborg.vbsupport.ru/showthread.php?t=119372

Great ! Great ! Great ! This is what I needed. Thank you.