Reply
form not working
Old 11-04-2007, 12:48 PM form not working
Skilled Talker

Posts: 77
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
 
When You Register, These Ads Go Away!
     
Old 11-16-2007, 10:50 AM Re: form not working
ChipJohns's Avatar
I don't know! Do you?

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
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, 11:00 AM Re: form not working
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
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.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-16-2007, 03:43 PM Re: form not working
Skilled Talker

Posts: 77
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, 03:47 PM Re: form not working
ChipJohns's Avatar
I don't know! Do you?

Posts: 477
Name: Chip Johns
Location: Savannah Georgia
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

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

vB 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.12203 seconds with 13 queries