/    Sign up×
Community /Pin to ProfileBookmark

registration page – code not working..

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

[upl-file uuid=109d0696-ffa2-4444-a73e-e27ec9060907 size=16kB]register.txt[/upl-file]

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@DARTHTAMPONApr 10.2007 — 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.
Copy linkTweet thisAlerts:
@takinduroauthorApr 10.2007 — okay will try that thanks
Copy linkTweet thisAlerts:
@takinduroauthorApr 10.2007 — 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?
Copy linkTweet thisAlerts:
@DARTHTAMPONApr 10.2007 — what values should it be sending?
Copy linkTweet thisAlerts:
@takinduroauthorApr 10.2007 — 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
Copy linkTweet thisAlerts:
@boxxertrumpsApr 11.2007 — have this:
[code=php]<code><?php
print_r($_REQUEST);
?></code>[/code]

At the bottom of your pages while testing.
×

Success!

Help @takinduro spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...