INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

A form with method="get" problem

A form with method="get" problem

(OP)
I have an ASP that using this line to pass on the parameters:

<form action="DESC.asp?" method="GET" name="parmform">

When using this form, the following output will occur:

http://salus/test/DESC.asp?DESC=clown&=View+Re...

Since I want to pass on the input of this form to a Reportal Server, I need to add id=103 after the question mark after DESC.asp. Unfortunately, the id=103 is ignored when I use this:

<form action="DESC.asp?id=103" method="GET" name="parmform">

I thought I would just add id=103 as a parameter, but the = character gets converted to the web language of the equals sign.

Is there a way to still pass on the id=103 after the "DESC.asp?"

RE: A form with method="get" problem

The next line after your form tag should be this:

CODE

<input type = "hidden" value = "103" name = "id"> 

You will not see the hidden form element on the page but it will be use when you click the submit button.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close