Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 11-04-2007, 01:48 PM form not working
Extreme Talker

Posts: 176
Trades: 0
i have a form, to submit things to my site, but its not working:

Code:
Submit A News Article<br>
                <form action="addnews.asp" method="post">
                Title:<input type="text" name="newstitle"><br>
                <textarea rows="10" cols="20" wrap="physical" name="newsbody">Body</textarea><br>
                <input type="submit" value="Add News"><br>
                </form>
when i click submit, it is supposed to go to addnews.asp, which processes it, but instead, it just add it into the url, like this:
http://bit-digita.com/options.asp?Sh...&newsbody=Body

whats up?


this one works fine:
Code:
Add an Affiliate/Friend
                <form action="addaffil.asp" method="post">
                Link:<input type="text" name="affillink"><br>
                Image:<input type="text" name="affilimage"><br>
                <input type="submit" value="Add Affiliate"><br>
                </form>
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2007, 11:50 AM Re: form not working
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Usually it adds to the url called a querry string when you have method set to "get" instead of "post"

I see you have Post but double check to make sure..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 11-16-2007, 12:00 PM Re: form not working
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Your form looks fine to me as well, but it may be a deeper issue. It looks to me like there's another form above that one somewhere with an unclosed form tag.

The reason I say that is because part of your querystring (ShowHide=...) has nothing to do with your form.

Validate your HTML code first, and then see if you still get the error.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-16-2007, 04:43 PM Re: form not working
Extreme Talker

Posts: 176
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post
Your form looks fine to me as well, but it may be a deeper issue. It looks to me like there's another form above that one somewhere with an unclosed form tag.

The reason I say that is because part of your querystring (ShowHide=...) has nothing to do with your form.

Validate your HTML code first, and then see if you still get the error.

I was just fooling around, and I fixed it. It was something to do with my javascript, so I just deleted it.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 11-16-2007, 04:47 PM Re: form not working
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post
unclosed form tag.
Nice deduction! Makes total sense... so simple but I probably wouldn't have thought about it..!
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Reply     « Reply to form not working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36739 seconds with 12 queries