ZenphotoCMS Forum
redirecting following form submition - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: redirecting following form submition (/thread-5874.html)



redirecting following form submition - pask - 19-09-2009

Hi all,

I'm using zen pages for my portfolio.
I have some unpublished page where i store data for my customer, so they are not visible on the slidebar.
I'd like to create a redirecting page with a simple form submit where people will enter their name and be redirected to www.mydomain/pages/customername

i've just started with puting this code as a begining into the bloc code :

Login :

I don't know where to go to find help, your help will be really appreciated ;-)
Tks !




redirecting following form submition - sbillard - 19-09-2009

Well, you need a submit button and a script for "some url" that processes the form submission and does the redirection.




redirecting following form submition - pask - 21-09-2009

Hi Sbillard, Tks.

i'm now with this code :

`




redirecting following form submition - acrylian - 21-09-2009

Why don't you use a get form to use action to jump to a page?




redirecting following form submition - sbillard - 21-09-2009

There could be several things that are wrong, But it might help if you tell us what happens. Otherwise anything we say is just speculation.

First, you cannot use the header redirection after a script has created any output.
Second, $_POST['nom'] may not exits thus throwing a PHP error.
Third, $_POST['nom'] might not be the permalink to the page.