Forums / Setup & design / Trying to use RedirectBack in tipafriend form...
Xavier Serna
Monday 18 December 2006 8:02:28 am
Hi!
I'm interested in using the RedirectBack function in a tipafriend form, so when a user fills the form and send it, he will come back automatically to the same page where there was, instead of loading a Thank You page and a link to come back.The problem is that I can't find any way to know that the form was sent correctly, and thus inform the user of that. I only get a page reload, and the the user can think that the process was not done, and is a bit confusing.
Any idea would be appreciated. Thanks!
-- Xavier Serna eZ Publish Certified Developer Departament de Software Microblau S.L. - http://www.microblau.net +34 937 466 205
Luis Micunco
Wednesday 14 May 2008 4:19:11 am
Im not sure if this is the correct way of doing this but worked for me:
I added this to my tipafriend form
<input type="hidden" name="RedirectBack" value="1" />
This works because in:
/kernel/content/tipafriend.php
..it is waiting for:
if ( $http->hasPostVariable( 'RedirectBack' ) && $http->postVariable( 'RedirectBack' ) == 1 ) { $Module->redirectTo( '/content/view/full/' . $NodeID ); return; }