Php/Html

Membru
Înscris
10 Feb 2012
Mesaje
455
Ma poate ajuta cineva sa fac urm :

-Cand dau click pe buton ,

Sa ii dea un vot si sa ma duca automat pe http://www.google.ro de ex

Dar sa ma duca imediat ce da vot nu dupa 2-3 secunde

Cod:
	<button onclick="voteaza('.$id.');" >Voteaza-l pe '.$nume.'! </button>
     <br /><div id="result"></div>
	<br />
 
Membru Banat
Veteran
Donator
Înscris
3 Sep 2011
Mesaje
468
Cod:
   <button onclick="voteaza('.$id.');window.open('http://google.ro'); return false;" >Voteaza-l pe '.$nume.'! </button>
     <br /><div id="result"></div>
   <br />

Foloseste codul de mai sus.
 
Membru
Înscris
10 Feb 2012
Mesaje
455
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

iar de la google apare cu verde

nu merge:(
 
Veteran
Înscris
28 Ian 2010
Mesaje
1.280
<button onclick="voteaza('.$id.');window.open('http://google.ro'); return false;" >Voteaza-l pe '.$nume.'! </button>
<br /><div id="result"></div>
<br />

window.open(\'http://google.ro\')
Schimba asa
 
Membru
Înscris
10 Feb 2012
Mesaje
455
gherca a spus:
<button onclick="voteaza('.$id.');window.open('http://google.ro'); return false;" >Voteaza-l pe '.$nume.'! </button>
<br /><div id="result"></div>
<br />

window.open(\'http://google.ro\')
Schimba asa


merge multumesc frumos
 
Sus