Click to See Complete Forum and Search --> : registration page - code not working..
takinduro
04-10-2007, 03:56 PM
aaaaahhh...losing my mind. I have been working on this for two days now, and I don't understand my error. Any help will be greatly appreciated. I am trying to create a registration page for a site, and have two forms created, and beased on what a user selects, I am displaying the one that pertains to their selection. That is working correctly, but I don't understand y when I click register, the page keeps refreshing and showing my last else statement. Please help!!!
Attached is my code.
Thanks
DARTHTAMPON
04-10-2007, 04:20 PM
throw some echos in to see what is being sent through.
echo $_POST['filmbutton'];
echo $_POST['invregbutton'];
echo $_GET['account'];
then figure out why the code is passing that value and proceed accordingly.
takinduro
04-10-2007, 04:22 PM
okay will try that thanks
takinduro
04-10-2007, 04:39 PM
the only one it seems to display is echo $_GET['account']; the other two aren't doing anything. Also I want it to display mesaages when they register, but it just seems to show the registartion page. Do you know what i may be doing wrong?
DARTHTAMPON
04-10-2007, 04:44 PM
what values should it be sending?
takinduro
04-10-2007, 04:51 PM
That is where I am not quite sure. The values for $_POST['filmbutton'] and $_POST['invregbutton'] are buttons so I don't know. can you look at my code please and tell me if my logic is correct? what I say is if the button named filmbutton is pushed do this else if the button for invregbutton is pushed do something else..else if the account type=filmmaker show this else if account type == investor do this else display the bottom..is that even right? sorry I am new to php
boxxertrumps
04-10-2007, 09:08 PM
have this:
<code><?php
print_r($_REQUEST);
?></code>
At the bottom of your pages while testing.