Re: Form problem variables are being sent in the query string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux