PDA

View Full Version : Item not being included in POST data


oracleguy
09-10-2002, 02:16 AM
Okay I have a page. It has among other items in a form 3 select boxes named SysLine, SysModel, SysSpeed. For some reason the value of SysSpeed isn't getting passed in the POST data as I found out. Why would this happen?


I've attached the page for your reference.

Post Data:
SysLine=Velocity&SysModel=AdvVelBus&AccOpts=SelectItem&CustName=&CustEmail=&CustLocation=&DP1=&DP2=&DP3=&EP1=&EP2=&EP3=


And as you'll quickly figure out, you can't run the page on its own because it requires a database.

Morgoth
09-10-2002, 02:29 PM
Inside that post data line, I don't see any sysSpeed tag. Maybe your not reciving it because it's not going through, or I am reading you wrong, and it's not going through cause the code isn't putting it in the post data line.

I'll look at the code now.

Morgoth
09-10-2002, 02:31 PM
I can't look at the code until I get home, A fire wall is blocking it, I can't download it.

If you read this before 1:00PM eastern, then please post the code in so I can look at it while I'm at school.

glenngv
09-11-2002, 02:54 AM
That isn't a POST data. That is a GET data because it's in the URL.
What is your form method, post or get?

oracleguy
09-11-2002, 04:37 AM
No, no, it isn't in the URL. The form method is post. It's just that I intentionally created an ASP (only temporarly of course) so I could look at the MS HTTP 500.100 error page. And if you don't know among other things, it tells you the POST data sent to the page. And that's where I got it. Because for some reason it isn't sending the value of that select box.

whammy
09-11-2002, 04:17 PM
Doing a search for SysSpeed within the .txt file you posted, it says it isn't there. ?

oracleguy
09-12-2002, 01:22 AM
Originally posted by whammy
Doing a search for SysSpeed within the .txt file you posted, it says it isn't there. ?

It's there. I just download the file i submitted. You have to skip past a few JS and ASP references to the object but it is there.

whammy
09-12-2002, 02:19 PM
Hmm... that's weird, it was definitely there this time. At any rate, I don't see anything too weird, except this:

function SysSpeed_onchange() {
if(document.Order.SysSpeed.value=!"")
{
document.Order.action=('order.asp?AddItem=System')
document.Order.submit();
}
}

I don't know if that's what's causing it, but I'm pretty sure that should be != . :)

oracleguy
09-14-2002, 06:42 AM
:thumbsup: :thumbsup: Yep :)

That was it!

I got the whole thing working after some minor ASP code debugging.


Thanks a ton.

whammy
09-14-2002, 07:06 AM
YAY! :)

I love it when I can help someone by noticing some syntax error... those are the hardest things to find sometimes.

:D