p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_discuss thread: POST and GET


Message #1 by mjsimp@s... on Tue, 2 Oct 2001 18:12:47
Hi!

was wondering if some of you could help me about my forms dilemma.

I have one form that have a POST and GET Method. But, when I am trying to 

see which method I am using. I Have problems seeing my GET Method. Any 

help will be appreciated!!
Message #2 by "Michael Kent Simmons" <msimmons@u...> on Tue, 2 Oct 2001 15:49:42 -0300
In a form, you use *either* a POST or a GET. No exactly sure what you mean

by *trying to see* which method you're using. Could you be more specific

and/or send up some code.



m.

__________________

----- Original Message -----

From: <mjsimp@s...>

To: "asp_discuss" <asp_discuss@p...>

Sent: Tuesday, October 02, 2001 6:12 PM

Subject: [asp_discuss] POST and GET





> Hi!

> was wondering if some of you could help me about my forms dilemma.

> I have one form that have a POST and GET Method. But, when I am trying to

> see which method I am using. I Have problems seeing my GET Method. Any

> help will be appreciated!!

>




$subst('Email.Unsub')

>



Message #3 by mjsimp@s... on Tue, 2 Oct 2001 20:18:39
can you take a look at my code and see what I am doing wrong?

this is one page with two forms within a page. and it will load up to 

answer.asp to see which one they checked in the form. It seems like that 

my querystring is not working.

<h3>Form using POST method</h3>

<form action ="testing.asp" methods= "POST">

	<input type = "checkbox" NAME = "methods">

Check to see the method use <br>

	<input type = "checkbox" NAME = "browsers">

Check to see the browser use <br>

<br>

<br>

<form action = "testing.asp" method = "POST">

	<input type = "radio" NAME = "credit" value = "Visa"> Visa<br>

	<input type = "radio" NAME = "credit" value = "MasterCard"> 

MasterCard<br>

<Br>

	<input type = "text" NAME = "creditname"> Credit Card Name<br>

	<input type = "text" NAME = "creditnum"> Credit Card Number<br>

<br>

	<input type = "Submit" value = "Click to Submit">

	<input type = "Reset" Value = "Click to Reset">

<p>

<p>





<h3>Form using GET method</h3>

<form action ="testing.asp" method= "GET">

<input type = "checkbox" NAME = "method">

Check to see the method use <br>

<input type = "checkbox" NAME = "browser" >

Check to see the browser use <br>

<br>

<br>

<form action = "testing.asp" method = "GET">

<input type = "radio" NAME = "credits" value = "Visa"> Visa<br>

<input type = "radio" NAME = "credits" value = "MasterCard"> MasterCard<br>

<Br>

<input type = "text" NAME = "cardname"> Credit Card Name<br>

<input type = "text" NAME = "cardnum"> Credit Card Number<br>

<br>

<input type = "Submit" value = "Click to Submit">

<input type = "Reset" Value = "Click to Reset">

<br>

<br>









 In a form, you use *either* a POST or a GET. No exactly sure what you mean

> by *trying to see* which method you're using. Could you be more specific

> and/or send up some code.

> 

> m.

> __________________

> ----- Original Message -----

> From: <mjsimp@s...>

> To: "asp_discuss" <asp_discuss@p...>

> Sent: Tuesday, October 02, 2001 6:12 PM

> Subject: [asp_discuss] POST and GET

> 

> 

> > Hi!

> > was wondering if some of you could help me about my forms dilemma.

> > I have one form that have a POST and GET Method. But, when I am trying 

to

> > see which method I am using. I Have problems seeing my GET Method. Any

> > help will be appreciated!!

> >




> $subst('Email.Unsub')

> >

> 







> In a form, you use *either* a POST or a GET. No exactly sure what you 

mean

> by *trying to see* which method you're using. Could you be more specific

> and/or send up some code.

> 

> m.

> __________________

> ----- Original Message -----

> From: <mjsimp@s...>

> To: "asp_discuss" <asp_discuss@p...>

> Sent: Tuesday, October 02, 2001 6:12 PM

> Subject: [asp_discuss] POST and GET

> 

> 

> > Hi!

> > was wondering if some of you could help me about my forms dilemma.

> > I have one form that have a POST and GET Method. But, when I am trying 

to

> > see which method I am using. I Have problems seeing my GET Method. Any

> > help will be appreciated!!

> >




> $subst('Email.Unsub')

> >

> 

Message #4 by "Bisht" <bisht@m...> on Wed, 3 Oct 2001 01:18:59 +0530
would you be bit more specific!



Thanks.



----- Original Message -----

From: <mjsimp@s...>

To: "asp_discuss" <asp_discuss@p...>

Sent: Tuesday, October 02, 2001 6:12 PM

Subject: [asp_discuss] POST and GET





> Hi!

> was wondering if some of you could help me about my forms dilemma.

> I have one form that have a POST and GET Method. But, when I am trying to

> see which method I am using. I Have problems seeing my GET Method. Any

> help will be appreciated!!

>



Message #5 by "Bisht" <bisht@m...> on Wed, 3 Oct 2001 01:26:44 +0530
Hello,



Here you are using lots of forms but not closing any of forms....

One more things why you are using so many forms here.. this can be hold by

one form only... so do make necessary changes..

good luck..







Message #6 by "Michael Kent Simmons" <msimmons@u...> on Wed, 3 Oct 2001 08:19:00 -0300
mj:



Suggestions:



All forms require a closing tag. If you stack multiple forms, containing no

closes, multiple methods, and several submit/reset pairs, the results are

varied and unpredictable.



Each form can have one and only one method specified.



The method chosen depends on the type of information being sent and its

purpose. A querystring is less secure and has a 4096-byte size limitation.



hth

m.



__________________________________

----- Original Message -----

From: <mjsimp@s...>

To: "asp_discuss" <asp_discuss@p...>

Sent: Tuesday, October 02, 2001 8:18 PM

Subject: [asp_discuss] Re: POST and GET





> can you take a look at my code and see what I am doing wrong?

> this is one page with two forms within a page. and it will load up to

> answer.asp to see which one they checked in the form. It seems like that

> my querystring is not working.

> <h3>Form using POST method</h3>

> <form action ="testing.asp" methods= "POST">

> <input type = "checkbox" NAME = "methods">

> Check to see the method use <br>

> <input type = "checkbox" NAME = "browsers">

> Check to see the browser use <br>

> <br>

> <br>

> <form action = "testing.asp" method = "POST">

> <input type = "radio" NAME = "credit" value = "Visa"> Visa<br>

> <input type = "radio" NAME = "credit" value = "MasterCard">

> MasterCard<br>

> <Br>

> <input type = "text" NAME = "creditname"> Credit Card Name<br>

> <input type = "text" NAME = "creditnum"> Credit Card Number<br>

> <br>

> <input type = "Submit" value = "Click to Submit">

> <input type = "Reset" Value = "Click to Reset">

> <p>

> <p>

>

>

> <h3>Form using GET method</h3>

> <form action ="testing.asp" method= "GET">

> <input type = "checkbox" NAME = "method">

> Check to see the method use <br>

> <input type = "checkbox" NAME = "browser" >

> Check to see the browser use <br>

> <br>

> <br>

> <form action = "testing.asp" method = "GET">

> <input type = "radio" NAME = "credits" value = "Visa"> Visa<br>

> <input type = "radio" NAME = "credits" value = "MasterCard">

MasterCard<br>

> <Br>

> <input type = "text" NAME = "cardname"> Credit Card Name<br>

> <input type = "text" NAME = "cardnum"> Credit Card Number<br>

> <br>

> <input type = "Submit" value = "Click to Submit">

> <input type = "Reset" Value = "Click to Reset">

> <br>

> <br>

>

>

>

>

>  In a form, you use *either* a POST or a GET. No exactly sure what you

mean

> > by *trying to see* which method you're using. Could you be more specific

> > and/or send up some code.

> >

> > m.

> > __________________

> > ----- Original Message -----

> > From: <mjsimp@s...>

> > To: "asp_discuss" <asp_discuss@p...>

> > Sent: Tuesday, October 02, 2001 6:12 PM

> > Subject: [asp_discuss] POST and GET

> >

> >

> > > Hi!

> > > was wondering if some of you could help me about my forms dilemma.

> > > I have one form that have a POST and GET Method. But, when I am trying

> to

> > > see which method I am using. I Have problems seeing my GET Method. Any

> > > help will be appreciated!!

> > >




> > $subst('Email.Unsub')

> > >

> >

>

>

>

> > In a form, you use *either* a POST or a GET. No exactly sure what you

> mean

> > by *trying to see* which method you're using. Could you be more specific

> > and/or send up some code.

> >

> > m.

> > __________________

> > ----- Original Message -----

> > From: <mjsimp@s...>

> > To: "asp_discuss" <asp_discuss@p...>

> > Sent: Tuesday, October 02, 2001 6:12 PM

> > Subject: [asp_discuss] POST and GET

> >

> >

> > > Hi!

> > > was wondering if some of you could help me about my forms dilemma.

> > > I have one form that have a POST and GET Method. But, when I am trying

> to

> > > see which method I am using. I Have problems seeing my GET Method. Any

> > > help will be appreciated!!
Message #7 by mjsimp@s... on Fri, 5 Oct 2001 16:40:01
Thank you for the help!! :)



I got it working

  Return to Index