Click to See Complete Forum and Search --> : Is it possible?


gogelpot
08-24-2006, 05:06 AM
Hi,

Is it possible for me to replace <form action="error.php"> with a veriable like:
<form action="<?php echo $pagename ?>">.

you see i would like to redirect the client to one page if he/she gives one answer but to another page if he/she gives another answer.

If the method above wont work what will work.

(I tried the above methor but I dont seem to get it to work. .... keeps redirecting to the same page.)

Pls help!!!

gogelpot
08-24-2006, 05:25 AM
Sorry for the this but I found my problem.

ahk2chan
08-24-2006, 05:25 AM
It won't work for what you trying to do because the variable has already been substituted with a value at server-time, which means your users haven't been given any answer yet. So it will always send to 1 page.

What you can do is to create a page where this form is going to submit to. On this page, according to the URL parameter, determine what page to redirect to.