Avatar
Hello
Guest
Log In or Sign Up
imgres
Word of the Week
writerofthemonth
dayofthegirl
brainstorm-girlpower
kindness_matters
bloggerofthemonth
iTwixie Sticker v01
iTwixie Smart Girl Challenge
girls can change the world
Cookie test
July 10, 2009
0

This is to test if we can access and pass username and userid.

{source}<?php

$u_name = $_COOKIE["jalUserName"];

echo “<p>Username: “.$u_name.”</p>”;

$user =& JFactory::getUser();
$usr_id = $user->get(‘id’);
echo “<p>Userid: “.$usr_id.”</p>”;

?>{/source}

Done.

Now testing if we can pass the userid to the survey:

{source}<script src=”http://app.sgizmo.com/s/survey_js2.php?id=IJ93R8QIR1MJFS82SFC2BYSTE0FYD1-147322&userid=” type=”text/javascript” ></script> <noscript>This survey is powered by SurveyGizmo’s <a href=”www.surveygizmo.com”>online survey software</a>. <a href=”http://www.surveygizmo.com/s/147322/ij93r” >Please take my survey now</a></noscript>{/source}

Leave a Comment

You must be logged in to post a comment.