473,593 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("p arm").

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>Untitl ed 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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t: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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t:frmGo1.submit ()'>Go (GET)... </a>

</body>
</html>

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

<%@LANGUAGE="VB SCRIPT" CODEPAGE="CP_AC P"%>
<html>
<head>
<title>Untitl ed 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("p arm")
%>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.form("p armHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QuerySt ring("parm") %>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.QuerySt ring("parmHidde n") %>"> <br>
</body>
</html>
Jul 19 '05 #1
7 20910
Gazing into my crystal ball I observed se************* @netc.pt (Rui
Pestana) writing in news:8a******** *************** **@posting.goog le.com:
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("p arm").

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>Untitl ed 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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t: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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t:frmGo1.submit ()'>Go (GET)... </a>

</body>
</html>

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

<%@LANGUAGE="V BSCRIPT" CODEPAGE="CP_AC P"%> <html> <head>
<title>Untitle d 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("p arm")
%>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.form("p armHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QuerySt ring("parm") %>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.QuerySt ring("parmHidde n") %>"> <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="javascrip t: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.goog le.com...
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("p arm").

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>Untitl ed 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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t: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="parmHidde n" value="olaParmH idden">
</form>
<a href='javascrip t:frmGo1.submit ()'>Go (GET)... </a>

</body>
</html>

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

<%@LANGUAGE="VB SCRIPT" CODEPAGE="CP_AC P"%>
<html>
<head>
<title>Untitl ed 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("p arm")
%>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.form("p armHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QuerySt ring("parm") %>"> <br>
parmHidden:<inp ut type="text" name="parmHidde n" value="<%=
request.QuerySt ring("parmHidde n") %>"> <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("p arm").

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>Untitle d 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="parmHidde n" value="olaParmH idden"> </form>
<a href='javascrip t: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="parmHidde n" value="olaParmH idden"> </form>
<a href='javascrip t:frmGo1.submit ()'>Go (GET)... </a>
</body>
</html>

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

<%@LANGUAGE="V BSCRIPT" CODEPAGE="CP_AC P"%>
<html>
<head>
<title>Untitle d 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("p arm")%>"> <br>
parmHidden:<in put type="text" name="parmHidde n" value="<%=
request.form(" parmHidden") %>"> <br>

GET<br>
parm:<input type="text" name="parm" value="<%=
request.QueryS tring("parm") %>"> <br>
parmHidden:<in put type="text" name="parmHidde n" value="<%=
request.QueryS tring("parmHidd en") %>"> <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("p arm")> %>">

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*********@io l.pt> wrote in message
news:Ob******** ******@TK2MSFTN GP09.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_i t-mate.co.uk> wrote in message news:<O0******* *******@tk2msft ngp13.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*********@io l.pt> wrote in message
news:Ob******** ******@TK2MSFTN GP09.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
3994
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 code. it is possible to submit form using javascript or vbscript but i am not allowed to use javascript or vbscript in my project. so how can i do it using php code??
3
6040
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 submit to an ASP page. This ASP page contains the code to submit the form data to a database. The page works fine when viewed through a browser, but the form will not submit in Outlook 2002 (I haven't tried other mail programs). Any...
2
1861
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 JavaScript: InputForm.action="URL LOCATION" InputForm.method="POST"; I think we don't need InputForm.submit(); because <input type="submit">.
3
2077
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 is page1.aspx <form action="page2.aspx" method="post"> means it will submit the page1.aspx form data to the web server, and then redirect from page1.aspxto page2.aspx?
4
10671
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 to have a final confirm box run from the function before the form is submitted. I guess I would have to use the return statement somehow but I can't see quite how. Any help gratefully accepted John
6
3095
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 should be submitted as if the button is pressed. Is this correct? Does this behaviour vary across browsers? Chris
4
1083
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 from a list menu once the value in the menu has been selected. Could anyone help please?
10
3026
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 number of rows. - Second column 25 %, no rowspan - Third column 25 %, no rowspan
5
6101
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 it should display message in this page which called using ajax(result.php). but actually it is not happening. I want user to be on the same page i.e. result.php
0
7936
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7874
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8241
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7997
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6646
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5738
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3853
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1469
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.