You can create test account by clicking the below link
https://developer.authorize.net/sandbox/
You will get login information to the registered account.
For test account Login URL click the below link
https://test.authorize.net/
Place the code in the submit button click and also you can pass the data from the textbox entered details