|
Agreed. If you know the request method is GET or POST, then using the
specific functions is better, but that is not always the case.
Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx
Kevin Schroeder
<kevin@xxxxxxxx>
Sent by: To
web400-bounces@mi Web Enabling the AS400 / iSeries
drange.com <web400@xxxxxxxxxxxx>
cc
2011-02-16 15:58 Subject
Re: [WEB400] Input Form ? to use
ODBC_CONNECT with parms.
Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>
With respect, I'd also recommend against $_REQUEST since it merges $_GET,
$_POST AND $_COOKIE and so you cannot predict where the data is coming
from. Additionally, the priority of which of those variables are merged
can be changed configurably and as such the source of that data can be
unpredictable. Sticking with $_GET or $_POST will make your life happier
in the long run.
Kevin Schroeder
Technology Evangelist
Zend Technologies, Ltd.
www.zend.com
www.twitter.com/kpschrade
www.eschrade.com
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of TAllen@xxxxxxxxxxxx
Sent: Wednesday, February 16, 2011 2:39 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Input Form ? to use ODBC_CONNECT with parms.
Note the $_REQUEST function explained on the POST page. That works for
both GET and POST.
Thanks,
Todd Allen
EDPS
Electronic Data Processing Services
tallen@xxxxxxxxxxxx
Glenn Hopwood
<ghopwood.list@gm
ail.com> To
Sent by: Web Enabling the AS400 / iSeries
web400-bounces@mi <web400@xxxxxxxxxxxx>
drange.com cc
Subject
2011-02-16 15:21 Re: [WEB400] Input Form ? to use
ODBC_CONNECT with parms.
Please respond to
Web Enabling the
AS400 / iSeries
<web400@midrange.
com>
The following link explains it better then I could.
http://www.w3schools.com/php/php_get.asp
...or you can use the POST method.
http://www.w3schools.com/php/php_post.asp
I prefer to use POST.
Glenn
On 2/16/2011 2:41 PM, Jack Kingsley wrote:
Ok, I am trying to find a way to desing an INPUT form .PHP to pass parmsto
my other coded .PHP script. Does anyone have a working example ofsomething
like this. I have a working backend .php hard coded with the values thatfront-end
works with no problem(s). Now I am trying to get it where I can
with a form and pass the parms to the script.
Here is my form:
html>
<head>
<title>TEST</title>
</head>
<body>
<form action="rmtboxinfo1.php" method="get">
Server :<input type="text" name="server" value=""></input>
Login :<input type="text" name="login" size=10 maxlength=10
value=""></input>
Password :<input type="text" name="password" size=10 maxlength=10
value=""></input>
<input type="submit" name="sumbit" value="Submit me!"></input>
</form>
</body>
</html>
This communication and any transmitted documents are intended to be
confidential. If there is a problem with this transmission, please contact
the sender. If the reader of this message is not the intended recipient, or
the employee or agent responsible to deliver it to the intended recipient,
you are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.