Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

Html Form Submit not passing Form Data to ASPX

I have a pure HTML page like this

<form name="FindByEdName" action="http://localhost:1863/FindByEdName.aspx" method=get>
Editor's Name:
<input id="EdName" type="text" />
<input id="btnByName" type=submit value="Find" />
</form>

But the http call arrives at FindByEdName.aspx with nothing on the URL?
What am I doing wrong?
0
volking
Asked:
volking
  • 2
  • 2
1 Solution
 
Sinoj SebastianCommented:
I think you need to use

method="post"
0
 
Alpesh PatelCommented:
Your Action is wrong
you actually xfer server so it cannot pass any value to the other server which is hosted on port 1863
you can only xfer or actioned out to the perticular page  with the server values.
either way is that u can use Response.redirect to pass the server values
0
 
Alpesh PatelCommented:
your action should be like

action="pagename.asp"
or

action="pagename.aspx"

like that


0
 
Sinoj SebastianCommented:
ooops I made a mistake sorry...

You need name attribute in the input control



<form name="FindByEdName" action="http://localhost:1863/FindByEdName.aspx" method=get>
Editor's Name:
<input id="EdName" name="EdName" type="text" />
<input id="btnByName" name="btnByName" type=submit value="Find" />
</form>

Open in new window

0
 
volkingAuthor Commented:
Duuuh! @SINOJ you're right.  I forgot the silly name. Thanks! Added name and it all works.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now