Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-21-2002, 12:58 PM   #1
Member (10 bit)
 
Join Date: Jul 1999
Location: Mass
Posts: 756
Question weird form submit issue..

Hi there.

I'm working on a form for an internal application at my company. The basic code for the form is below. The problem goes like this...

When you load the page, type something in the text box, and hit Enter, the page simply refeshes without returning ANY results. If you type in the text box and CLICK the Submit button, the form works perfectly. Why do you suppose no results are returned upon the first method? Is there some piece code I need to insert into my Index.asp page to counter this? Thanks for any info!

~p


<form name="ChannelSearch" action="index.asp" method="post">

<input type="text" name="SearchCriteria" size=20 maxlength=50>
<input type="submit" name="Action" value="Search">

<br>
<font face="verdana,arial,helvetica" size="2">
<input type="radio" name="SearchType" value="ChannelAlias" checked> Channel Alias
<br>
<input type="radio" name="SearchType" value="ChannelName"> Channel Name
<br>
<input type="radio" name="SearchType" value="ChannelID"> Channel ID
<br>
<input type="radio" name="SearchType" value="DomainName"> Domain Name
</font>

</form>
PeteS99 is offline   Reply With Quote
Old 01-21-2002, 04:48 PM   #2
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
No, it doesnt have anything to do with your index.asp page, you can do it with javascript.. here, this page outta do it:
http://javascript.about.com/library/...mitonenter.htm

enjoy.
Goog is offline   Reply With Quote
Old 01-21-2002, 05:06 PM   #3
Member (10 bit)
 
Join Date: Jul 1999
Location: Mass
Posts: 756
cool! i will try this out tomorrow. thanks Goog!!
PeteS99 is offline   Reply With Quote
Old 01-21-2002, 07:26 PM   #4
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
np, yer welcome.
Goog is offline   Reply With Quote
Old 01-22-2002, 09:35 AM   #5
Member (10 bit)
 
Join Date: Jul 1999
Location: Mass
Posts: 756
hmmm. still no dice.. works the same way. it appears that the form is being submitted, but the page simply refreshes and the query is not run. i am going to search for some more scripts...
PeteS99 is offline   Reply With Quote
Old 01-22-2002, 10:10 AM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
That's weird. Usually the only time I have seen it do that is if you put your reset button before your submit button. So that pressing Enter, clears instead of submitting.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 01-22-2002, 10:36 AM   #7
Member (10 bit)
 
Join Date: Jul 1999
Location: Mass
Posts: 756
Talking

I think I have it licked!!
The ASP had this IF statement, for the Submit button:

if ucase(Request("Action")) = "SEARCH" ..

i need the functions that lie within that IF to run no matter what! so if someone hits Enter from the Text Box, the Submit button is being skipped over.. and when the data gets passed, this IF statement doesn't get turned on... leaving us with no search results!

i took out the IF portion, so this is mandatory.. and BAM, it works like a charm!
PeteS99 is offline   Reply With Quote
Old 01-22-2002, 01:47 PM   #8
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
cool..

hey mairving, nice signature
Goog is offline   Reply With Quote
Old 01-22-2002, 02:25 PM   #9
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally posted by Goog
cool..

hey mairving, nice signature
Yeah, I meant to say something about yours early but forgot. It's open-source anyway, eh?
mairving is offline   Reply With Quote
Old 01-22-2002, 04:29 PM   #10
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
Yeah, its from attrition.org (Thats where I got it anyway). I can tell u didnt copy mine because you added the single quotes around 'if your...' and thats the way it is on attrition, i removed them in mine for some reason..

heh.

there were a ton of funny quotes there, did u see the ones of actual instructions on foreign products?
Goog is offline   Reply With Quote
Old 01-22-2002, 09:13 PM   #11
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
I really have no idea where it came from. I did a Goggle search on 'Linux Quotes' and it came up. I also like the Windows 95 or better quote which Statica has used before.
mairving is offline   Reply With Quote
Old 01-23-2002, 05:03 PM   #12
Member (7 bit)
 
Join Date: Jan 2002
Location: New York
Posts: 97
Send a message via ICQ to Goog Send a message via AIM to Goog Send a message via Yahoo to Goog
Oh, you should check out http://www.attrition.org/quotes/
theres a lot of funny quotes there... techie type stuff to.. but the one in particular i found to be truly hilarious was this:
http://www.attrition.org/quotes/labels.html
its real instructions on labels of actual prodocuts.

Also, worth a look : http://www.attrition.org/quotes/bush.htm
Goog is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:27 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0