[prev in list] [next in list] [prev in thread] [next in thread]
List: php-windows
Subject: Re: [PHP-WIN] Form problem variables are being sent in the query
From: Chris <listschris () leftbrained ! org>
Date: 2005-08-22 19:08:36
Message-ID: 430A22B4.4030204 () leftbrained ! org
[Download RAW message or body]
Your form should be defined like this:
<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>"
method="post">
The post method is what keeps the variables off the URL string, the
action is the page to submit the data to.
Chris
Jim MacDiarmid wrote:
>I have 2 form fields one is a checkbox and the other is a hidden field. The
>checkbox is called "Display_" and gets incremented as the table rows are
>built like so.
>
>'Display_'.$rec_count + 1
>
>The hidden field is an array like this: Field[]
>
>The form method is $_SERVER['PHP_SELF']
>
>For some reason, these form variables are being passed on the query line.
>Is there any way this can be prevented?
>
>Thanks in advance,
>
>Jim
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic