Hey guys, could someone please help me? I have created a form that works perfectly, except I need the form to auto-refresh once a user clicks "Spend"
I would like to use this javascript code to do the refresh
<A HREF="javascript:history.go(0)">Spend</A>
Is there any way possible to implement the javascript code into the PHP?
If not, is there other ways to refresh on click in php?
The original code:
<form action=\"index.php?do=skills\" method=\"post\">
<font size='4'><b>Skill points</b></font><br />
Every time you raise a level, you get 5 skillpoints. You can spend them here.
<br />
You currently have <font color=green><b>".$userrow["skills"]." Skill Points.</b></font>. Please choose an attribute:<br />
<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"strength\" CHECKED>Strength<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"dexterity\" >Dexterity<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"attackpower\">Attackpower<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"defensepower\">Defensepower<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"maxhp\" >Max. HP<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"maxmp\" >Max. MP<br />
<INPUT TYPE=\"radio\" NAME=\"choice\" VALUE=\"maxtp\" >Max. RP<br />
<br />
How many skill points do you want to spend? (+1 for every skill point): <br /><br />
Amount: <INPUT TYPE=\"text\" NAME=\"amount\" SIZE=\"8\" MAXLENGTH=\"8\">
<INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Spend\">
</form>
\n<br /><br />\n";