> -----Original Message-----
> From: Shaun [mailto:[EMAIL PROTECTED] 
>
> Hi,
> 
> I have a number of forms on my site, and each form can be 
> accessed from a number of different pages. Can anyone suggest 
> a way I can monitor this so that when the submit button is 
> pressed the user is returned to the page they were on before. 
> This is also complicated by the fact that I have a system 
> that returns the user to the same page if there are errors on 
> the form...
> 
I do this by passing a hidden value in the post. The value can
identify anything you like, on mine it identifies the domain the
form was submitted from (though thinking about this now I can do
this without a hidden value, but you get the idea!).

The problem with this is that it means you have to have a separate
copy of each form unless you can construct the hidden input value
using other variables.

Cheers, Greg.
-- 
Greg Wiley
http://wileysworld.org/ 


------------------------------------------------------------
Mail was checked for spam by the Freeware Edition of No Spam Today!
The Freeware Edition is free for personal and non-commercial use.
You can remove this notice by purchasing a full license! To order
or to find out more please visit: http://www.no-spam-today.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to