Solved

Html Form Submit not passing Form Data to ASPX

Posted on 2007-12-04
5
708 Views
Last Modified: 2012-08-13
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
Comment
Question by:volking
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Sinoj Sebastian
ID: 20404699
I think you need to use

method="post"
0
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20404721
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
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20404727
your action should be like

action="pagename.asp"
or

action="pagename.aspx"

like that


0
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20404807
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
 
LVL 5

Author Closing Comment

by:volking
ID: 31412632
Duuuh! @SINOJ you're right.  I forgot the silly name. Thanks! Added name and it all works.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question