Connecting Tech Pros Worldwide Help | Site Map

Form variables in the address line.

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 29th, 2006, 12:15 PM
opt_inf_env@yahoo.com
Guest
 
Posts: n/a
Default Form variables in the address line.

Hi,

I have created a form with hidden variables and submit button which
initiate downloading of a new page. After submit-button is pressed and
new page is downloaded I can see values of all hidden variables in the
address line of the browser. It is strange that another form does not
produce this effect (variables in address line). I cannot find out
which difference in forms originates different behavior. May be you
have some ideas?


  #2  
Old January 29th, 2006, 12:55 PM
opt_inf_env@yahoo.com
Guest
 
Posts: n/a
Default Re: Form variables in the address line.

OK. It was stupid mistake. I could see variables values in the address
line in cases when I did not put method="post" in the forms
declaration.

  #3  
Old January 29th, 2006, 01:15 PM
Alvaro G. Vicario
Guest
 
Posts: n/a
Default Re: Form variables in the address line.

*** opt_inf_env@yahoo.com escribió/wrote (29 Jan 2006 05:01:15 -0800):[color=blue]
> I have created a form with hidden variables and submit button which
> initiate downloading of a new page. After submit-button is pressed and
> new page is downloaded I can see values of all hidden variables in the
> address line of the browser. It is strange that another form does not
> produce this effect (variables in address line). I cannot find out
> which difference in forms originates different behavior. May be you
> have some ideas?[/color]

There're several methods to send data to a web server. Forms normally use
GET or POST. In HTML you specify it with the 'method' attribute in 'form'
tag. GET method implies using the URL to send the data while POST gets its
data sent in the body of the request.

Also, please note that the 'hidden' type only affects the way the field is
rendered into the page (i.e., not displayed).


--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--
 

Bookmarks

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.