Question:

How to post HTML form to another page?

by  |  earlier

0 LIKES UnLike

I have the following code:

<form method="post" action="http://fuelhosting.org/hosting/c...

Username: <input type="text" name="username"><br>

Password: <input type="password" name="password"><br>

<input type="submit" value="Login">

</form>

If you test it a htmlsandbox.com, fill out the html form, when you submit it just brings you to the login page and never actually successfully posts the info for you.

Any suggestions on what I can do? I have full control over all scripts and servers.

 Tags:

   Report

2 ANSWERS


  1. well... yahoo cut off the action=&quot;&quot; of the form, but I suppose it goes to a php page.

    Anyway, on that page, u should have a server side script (php, asp, jsp) to retrieve and process the info.


  2. make sure you are using the same form name, and input names. Also, add &quot;?act=login&quot; to the end of the form action URL.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.