hello.
i get returned this error "user1 not defined".
the user1, user1, ... are an array
but somewhere is getting stuck
thanks a lot,
here is my code
here is the publishStream() that is called
i get returned this error "user1 not defined".
the user1, user1, ... are an array
but somewhere is getting stuck
thanks a lot,
here is my code
Code:
if(!isset($_POST['list'])){
?>
<form action="listings.php" method="post">
<input type="hidden" name="link" value="">
<?
echo '<select name="list[]" multiple="multiple">';
while ($row = mysql_fetch_assoc($result))
{
echo '<option>' . $row['username'] . '</option>';
}
echo '</select>';
?>
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
<?php } else {
$usernames = $_POST['list'];
$link="http://www.exploretalent.com/model_page.php?talentnum=";
$IDS = implode('-',$_POST['list']);?>
<script type="text/javascript" >
var uids = new Array(<?php echo implode(',', $_POST['list']); ?>);
</script>
<a href="#" onclick="publishStream('<?php echo $link;?>',uids); return false;">Click to Publish on WALL.</a><?php }?>
Code:
function publishStream(link,IDS){
var x;
for (x in IDS) { //- pass in array of ids, loop through the ids here.
streamPublish("Vote for me here", 'Visit Explore Talent', 'Checkout', link+IDS[x], "Facebook Application");
}
}
Comment