PDA

View Full Version : am i doing this wrong? (conditionals)


sabret00the
10 Jun 2004, 20:21
can you spot anything wrong with this code?


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



it's within this

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



the second php tag opens the page "?confessionid=$confessionid"
where as the top php tag will go to ?confessionid=$confessionid&action=report" well should do anyway however it doesn't seem to want too and lastly since the '&action=report' is a form, the submitted data will go to "?confessionid=$confessionid&action=report&confirm=report"

Xenon
10 Jun 2004, 20:35
erm, have you globalized the get / post parameters before using them here?

also alwasy put strings like report into '' :)

sabret00the
10 Jun 2004, 21:14
yup, and i fixed the strings, but i can't figure out the problem, i just seem to be getting redicted back to the index, even when i comment out the redirect that should take me there.

sabret00the
10 Jun 2004, 21:15
found the problem it was some duplicate code i had up earlier in the script :o

Xenon
10 Jun 2004, 21:35
*gg*

such things can happen ^^

sabret00the
10 Jun 2004, 21:39
always to me :( lol

Xenon
10 Jun 2004, 21:41
Well, that's called Murphy's law