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?
LVL 5
volkingAsked:
Who is Participating?
 
Sinoj SebastianConnect With a Mentor CTO & OpenERP Project managerCommented:
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
 
Sinoj SebastianCTO & OpenERP Project managerCommented:
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
 
volkingAuthor Commented:
Duuuh! @SINOJ you're right.  I forgot the silly name. Thanks! Added name and it all works.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.