Quote:
Originally Posted by Kor
To do what, as a next step? Once again, please, detail your aim. You keep on being cryptic.
|
here again my JS:
function viewornot(id)
{
var e = confirm('Do you want to view this profile?');
if (e == true)
{
window.location.href = "http://www-rainbowcode-net/apps_dev.php/profiles/showprofilepersonal?id="+id;
window.location('http://www-rainbowcode-net/apps_dev.php/profiles/showprofilepersonal?id='+id);
return true;
}
else
{
var e2 = confirm('Do you want to send a message?');
if (e2 == true)
{
//i know user clicked ok thus wants to send a message
document.getElementById('profilelink').value = 1;
return 1;
}
}
}
<a href="#" id="profilelink" name="profilelink" onClick="return viewornot(<?php echo $freechat_id ?>)"><?php echo $freechat_list; ?></a>
<?php
if (isset($_POST['profilelink']) == 1)
{
echo "ok was clicked"; //not executing!
?>
//now do a message area with a submit or cancel button
<textarea name="message" rows="10" cols="20"></textarea>
<br /><br />
<input type="submit" value="Send">
<input type="reset" value="Reset" name='reset'>
<?php
}
?>