PHP/html help


#1

Hello,

I was trying to make a form for the SA Account name changer api link but it’s not working like the account creator does. I’m not sure what I’m doing wrong and was wondering if anybody could help debug this for me to get it working. I have a feeling it’s because the api uses the name change method in its url and it’s not just a .php like the first one.

Code for the Account name changer

<form action="http://api.xgenstudios.com/?method=xgen.users.changeName" method="POST"><br />
<center>Username: <input type="text" name="username">
<br />
Password: <input type="text" name="password">
<br />
New Username: <input type="text" name="new_username">
<br />
<input type="hidden" name="action" value="create">
<br />
<input type="submit" value="Submit"><br /></center></form>

Code for the account creator

<form action="http://www.xgenstudios.com/stickarena/stick_arena.php" method="POST"><br />Username: <input type="text" name="username">
    <br />
    Password: <input type="text" name="userpass">
    <br />
    RGB: <input type="text" name="usercol">
    <br />
    <input type="hidden" name="action" value="create">
    <br />
    <input type="submit" value="Submit"><br /></form>

Thank you to anyone who can help!!!