Operating System - HP-UX
1833491 Members
2789 Online
110052 Solutions
New Discussion

Re: Problems with HTTP forms

 
BONNAFOUS Jean Marc
Trusted Contributor

Problems with HTTP forms

Hello,

I use Apache Web server 2.0.43 on A-class servers with HP-UX 11.00.When I "execute" htlm form (for example i want to give login and password for connecting on a database), i can't transmit variables values in other script: when i make a echo, i have nothing in variable.
I use the two methods (post and get) and i test with I.E and Netscape navigator.

Thanks for help.

JMB
(PS: The php and htlp scripts work well on a MS Windows system)
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
5 REPLIES 5
Steven Mertens
Trusted Contributor

Re: Problems with HTTP forms

hi,

can you give an example of
your script ?

Do you use the QUERY_STRING var or
$* ?

rgds.

Steven
Tom Jackson
Valued Contributor

Re: Problems with HTTP forms

Hi:

If I were going to pass information from a web form to a web server, I would use a form who's action is to call a servlet. In the servlet, I would do an HttpServletRequest.getParameter("formInputFieldName") to get the value.

Goto Oreilly.com and search for Servlet Programming for information on how to program servlets.

Tom
Steven E. Protter
Exalted Contributor

Re: Problems with HTTP forms

I do this all the time on httpd servers, mostly apache 1.3x.

If you attach the http doc and the program it calls, I can try and help.

My method is a post, executing a perl script which uses the chop command to parse the variables.

Take a look here for a site that uses the information to pass data:

http://www.investmenttool.com

Its got one field for stock symbols, you press the go button and bingo, data gets passed.

Its just the only example I can give you on the pubic Internet.

It is possible, I can provide examples if you find them relavent.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
BONNAFOUS Jean Marc
Trusted Contributor

Re: Problems with HTTP forms

Here example of php script.

The var. formProfil, formLogin, and formPwd don't pass to Faire_authentification.php script

Thanks

JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
BONNAFOUS Jean Marc
Trusted Contributor

Re: Problems with HTTP forms

I perhaps find the solution.
We use the $var syntax and it's not good on some Unix platforms. We must use the $HTTP_POST_VARS['var'] syntax. This work on all platforms but it's hard job to change all scripts. If you have a best solution?

Thanks.

JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.