473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Submit form using method="post" to target="_search"

Hello all,

I want to use the POST method to submit the form and then grab the
parameters in the asp file with request.form("parm").

The problem is that I am using the _search target to open the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works.

I really need to use POST method cause I'm passing lot of data in the
parameters.

Thanks a lot in advance for any suggestion, solution, reasons why this
doesn't work or a workaround.

Rui
***********************************************
***************FILE a.htm**********************
***********************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form name="frmGo" action="b.asp" method="post" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo.submit()'>Go (POST)... </a>

<form name="frmGo1" action="b.asp" method="get" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo1.submit()'>Go (GET)... </a>

</body>
</html>

***********************************************
***************FILE b.asp**********************
***********************************************

<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
POST<br>
parm:<input type="text" name="parm" value="<%= request.form("parm")
%>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.form("parmHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryString("parm") %>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.QueryString("parmHidden") %>"> <br>
</body>
</html>
Jul 19 '05 #1
7 20882
Gazing into my crystal ball I observed se*************@netc.pt (Rui
Pestana) writing in news:8a*************************@posting.google.co m:
Hello all,

I want to use the POST method to submit the form and then grab the
parameters in the asp file with request.form("parm").

The problem is that I am using the _search target to open the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works.

I really need to use POST method cause I'm passing lot of data in the
parameters.

Thanks a lot in advance for any suggestion, solution, reasons why this
doesn't work or a workaround.

Rui
***********************************************
***************FILE a.htm**********************
***********************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<head> <title>Untitled Document</title> <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"> </head>

<body>
<form name="frmGo" action="b.asp" method="post" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo.submit()'>Go (POST)... </a>

<form name="frmGo1" action="b.asp" method="get" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo1.submit()'>Go (GET)... </a>

</body>
</html>

***********************************************
***************FILE b.asp**********************
***********************************************

<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%> <html> <head>
<title>Untitled Document</title> <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"> </head>

<body>
POST<br>
parm:<input type="text" name="parm" value="<%= request.form("parm")
%>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.form("parmHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryString("parm") %>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.QueryString("parmHidden") %>"> <br>
</body>
</html>


target="_blank" is a reserved word. target="_search" will open in a window
called _search, if one is not available, it will create that window. Be
aware that some pop-up stoppers and/or browser configurations may cause the
window not to open.

Additionally, <a href="javascript:frmGo.submit()"> is malformed. It will
not work in many browsers, Opera for example. You should be using <input
type="submit" onclick="frmGo.submit()"> This will enable users without
javascript to still submit the page, and you can do server side
verification.
--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #2
I'm using frames and the POST method, and it works just fine?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)

Rui Pestana <se*************@netc.pt> wrote in message
news:8a*************************@posting.google.co m...
Hello all,

I want to use the POST method to submit the form and then grab the
parameters in the asp file with request.form("parm").

The problem is that I am using the _search target to open the asp
page.
When I use _blank target there is no problem, either I use GET or POST
method.
But when I use _search target, only GET method works.

I really need to use POST method cause I'm passing lot of data in the
parameters.

Thanks a lot in advance for any suggestion, solution, reasons why this
doesn't work or a workaround.

Rui
***********************************************
***************FILE a.htm**********************
***********************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form name="frmGo" action="b.asp" method="post" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo.submit()'>Go (POST)... </a>

<form name="frmGo1" action="b.asp" method="get" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="hidden" name="parmHidden" value="olaParmHidden">
</form>
<a href='javascript:frmGo1.submit()'>Go (GET)... </a>

</body>
</html>

***********************************************
***************FILE b.asp**********************
***********************************************

<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
POST<br>
parm:<input type="text" name="parm" value="<%= request.form("parm")
%>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.form("parmHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryString("parm") %>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.QueryString("parmHidden") %>"> <br>
</body>
</html>

Jul 19 '05 #3
Why do you need "_search"?
-----Original Message-----
Hello all,

I want to use the POST method to submit the form and then grab theparameters in the asp file with request.form("parm").

The problem is that I am using the _search target to open the asppage.
When I use _blank target there is no problem, either I use GET or POSTmethod.
But when I use _search target, only GET method works.

I really need to use POST method cause I'm passing lot of data in theparameters.

Thanks a lot in advance for any suggestion, solution, reasons why thisdoesn't work or a workaround.

Rui
***********************************************
***************FILE a.htm**********************
***********************************************

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form name="frmGo" action="b.asp" method="post" target="_search"> <input type="text" name="parm" value="olaParm"> <input type="hidden" name="parmHidden" value="olaParmHidden"> </form>
<a href='javascript:frmGo.submit()'>Go (POST)... </a>
<form name="frmGo1" action="b.asp" method="get" target="_search"> <input type="text" name="parm" value="olaParm"> <input type="hidden" name="parmHidden" value="olaParmHidden"> </form>
<a href='javascript:frmGo1.submit()'>Go (GET)... </a>
</body>
</html>

***********************************************
***************FILE b.asp**********************
***********************************************

<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
POST<br>
parm:<input type="text" name="parm" value="<%= request.form("parm")%>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.form("parmHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryString("parm") %>"> <br>
parmHidden:<input type="text" name="parmHidden" value="<%=
request.QueryString("parmHidden") %>"> <br>
</body>
</html>
.

Jul 19 '05 #4
Adrienne
thanks for the answer...

But, the issue is to grab "parm" value in the asp file:

<input type="text" name="parm" value="<%= request.form("parm")> %>">

after passing it using

<form name="frmGo" action="b.asp" method="post" target="_search">
<input type="text" name="parm" value="olaParm">
<input type="submit" onclick="frmGo.submit()">
</form>

I really appreciate if you have a solution to this
Thanks
Rui

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #5
I need to use the _search frame, to keep user in the some page. In fact,
I don't really need the search capabalities of this frame.
I want to update a record in the _search frame and then refresh the main
page.
Using the _search frame it's be possible to refresh the _main page to
reflect the changes made.

I have this working when I use Get method. But now I need to use Post
method because of size string restrictions when using Get method.

Thanks and regards

Rui

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #6
What exactly happens when you use the POST method?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)

Rui Pestana <ru*********@iol.pt> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
I need to use the _search frame, to keep user in the some page. In fact,
I don't really need the search capabalities of this frame.
I want to update a record in the _search frame and then refresh the main
page.
Using the _search frame it's be possible to refresh the _main page to
reflect the changes made.

I have this working when I use Get method. But now I need to use Post
method because of size string restrictions when using Get method.

Thanks and regards

Rui

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #7
I just can't get the parameter...

"Steven Burn" <nobody@PVT_it-mate.co.uk> wrote in message news:<O0**************@tk2msftngp13.phx.gbl>...
What exactly happens when you use the POST method?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)

Rui Pestana <ru*********@iol.pt> wrote in message
news:Ob**************@TK2MSFTNGP09.phx.gbl...
I need to use the _search frame, to keep user in the some page. In fact,
I don't really need the search capabalities of this frame.
I want to update a record in the _search frame and then refresh the main
page.
Using the _search frame it's be possible to refresh the _main page to
reflect the changes made.

I have this working when I use Get method. But now I need to use Post
method because of size string restrictions when using Get method.

Thanks and regards

Rui

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: vishal | last post by:
hello friends i have one php script which generates html page containing form. what i want is submit this form using php script. pls give me some idea that how can i submit form using php...
3
by: Mark Michel | last post by:
Hi. I have made an html form which I would like to send by e-mail. When the recipient receives the e-mail form, I would like them to be able to fill it out and click the Submit button which will...
2
by: Matt | last post by:
The problem is I have 3 buttons that need to submit the form to different URL. My approach is to declare <input type="submit"> rather than <input type="button">. And put the following in the...
3
by: Matt | last post by:
When people say submit the form data, does it mean the form data are submitted to web browser using either HTTP GET or POST method, and then it will redirect to another page. For example, this...
4
by: btopenworld | last post by:
I am submitting a form using an image as the link to a js file. The image calls a js function which checks fields- issuing alerts for errors - if no errors it then submits the form. I would like...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
4
by: Sean K via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Sean K Hi There, I am new to asp.net and I would like to find some code or a tutorial that will allow me to submit a form...
10
by: Perry van Kuppeveld | last post by:
Hi, I have a problem with formatting a table including text fields wich can contain up to 255 chars. I need a table with 3 columns: - First column 50 % over the with a rowspan of the total...
5
by: mukeshrasm | last post by:
Hi I am displaying a page (result.php) using ajax and in this page I have few links when clicked opens a div popup. in which a form, a text field and a submit button is there. when I click submit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.