toufik toufik wrote:
"Justin Koivisto" <sp**@koivi.com> wrote in message
news:OA****************@news7.onvoy.net...
toufik toufik wrote:
Hi,
I've a form that call a PHP file using the POST method , how can I pass a
new parameter to PHP .
thanks.
Add a field to the form?
Thanks,
is it the only way that we have? because I have differents info in
differents pages, And I prefer not to add fields to the form.
You could prase the _POST array at the beginning of the script and look
for a field that tells what script submitted the form and process from
there... Just add something to each form like:
<input type="hidden" name="referer" value="<?php echo
$_SERVER['PHP_SELF'] ?>">
Then take your action based on the $_POST['referer'] field value.
--
Justin Koivisto -
sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.