Click to See Complete Forum and Search --> : How does one get rid of the other information that appears in the address bar ?


Bern
10-27-2003, 09:36 AM
I want to get rid of the other information to prevent the user from perhaps cheating a company when it comes to purchasing items.

For Example.

this is the test link that i had in the address bar.

file:///C:/WINDOWS/Desktop/stuff/confirm.html?camera=on&Qty1=1&Price1=50.00&Amt1=50.00&video=on&Qty2=4&Price2=200.00&Amt2=800.00&Qty3=0&Price3=20.00&Amt3=0&Qty4=0&Price4=40.00&Amt4=0&Subtotal=850.00&Shipping=12.00&Tax=68.00&Total=930.00

Right now it is a file, but would this happen in a http address ? and if so, how do i get rid of the other information after the ?

Really appreciate any help or advice over this !
thanks for reading this thread !

Bern

AdamGundry
10-27-2003, 10:11 AM
Your ordering system is using GET queries to transfer data between pages. It should use POST instead, though this still may not be completely secure.

If it is written in Javascript, you need to find a server-side version that is not JS dependent.

Adam

BestZest
10-27-2003, 10:14 AM
Are you using JavaScript to grab the text after the '?' or a server side language? If your using a server side language:
a) You can use the 'POST' method, rather than 'GET'
b) This post should be in a different forum.

If your using JavaScript you can't modify the address bar text unless you redirect to another page. Another option instead of using the '?', would be to use a temporary cookie to store infromation between pages.

Hope this helps,

BestZest

Bern
10-27-2003, 10:22 AM
thanks for replying to this post.

to answer the question, yes i am using javascript.

is there an example on using Post ?

and what server side languages i should use ?

I am kinda new to javascript so i want to thank you guys for being really patient with my questions, thanks and kudos to you guys !

Bern