Hi all,
I am trying to do highscore in construct2. I have to call this code from construct 2
function submitscore(score)
{
var submit_url = document.referrer + 'index.php?act=Arcade&do=newscore';
if (score == ''){score = 0;}
document.write('<form name="highscore" action="'+submit_url+'" method="POST" target="_parent"><input type="hidden" name="gscore" value="'+score+'"></form>');
}
Please let me know how to post values to index.php file. the sample link must be like this,
index.php?act=Arcade&do=newscore?hscore=0&gname=AbovecloudsHS2
Help will be greatful.
Thanks.