Quote:
Originally Posted by Jolten
Thank's for replying Erwin.
I added the following to the top of the form.php file
Code:
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'flagcomm'); // change this depending on your filename
$catid=$_POST['catid'];
$cad=$_POST['cad'];
$linkUrl="http://www.domain.com/page.php?id=".$catid."&cad=".$cad."&type=a";
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
But I can't seem to pull the link into the form answers. $linkurl works fine in the answers but the two variables are empty.
I've also added hidden inputs to the form template for both these variables.
|
No, you have to add the variables to this array:
PHP Code:
globalize($_POST, array(
'normalanswer1' => STR,
'radioanswer1' => STR,
'longanswer1' => STR,
'action' => STR
));
Otherwise vB won't let it through for security reasons.