/    Sign up×
Community /Pin to ProfileBookmark

Confirmation Page!

Hi,

I’m attempting to install PHPFanList for my fanlisting. I’m having trouble applying it to my website. I think I have figured out how to work the members and the join page, but i’m having trouble with the confirmation page. I need to get the confirmation page to work when a member joins. I have this code BUT at the moment it comes up like it is shown below when i try and view it in my browser:

[code=php]
<?php
function isrequired($s, $v) {
global $fields_required;
if (in_array($v, $fields_required)) {
echo $s;
}
}
$message = ”;
if (($_SERVER[‘REQUEST_METHOD’] == ‘POST’) and ($_POST[‘submit’] == ‘Join’)) {
reset ($_POST);
while (list ($key, $val) = each ($_POST)) {
if (in_array($key, $fields_required)) {
if (toNULL($val) == ‘NULL’) {
$message = ‘It appears that you forgot something. All fields with * are required. Please click the back-button and try again.’;
break;
}
}
}
if ($message == ”) {
if (($_POST[‘url’] == ”) or (validate_site($_POST[‘url’]))) {
if (validate_mail($_POST[‘mail’])) {
$row = fetch_array(query(‘check_mail’, $_POST[‘mail’]));
if (($row[‘num’] > 0) and (!$settings[‘allow_doublemail’])) {
$message = ‘Sorry, but this email address is already listed in the database. This means that you’re already listed as a member. If you want to see your listing as a member, please click here.’;
} else {
include_once(‘mail.inc.php’);
if (query(‘join’, $_POST)) {
$message = ‘Thank you ‘ . $_POST[‘name’] . ‘ for joining ‘ . $settings[‘site_name’] . ‘. You will be added to the members list with the next update.’;
if ($settings[‘mail_on_join’]) {
do_mail(‘join’);
}
if ($settings[‘mail_admin’]) {
do_mail(‘admin_join’);
}
} else { $message = ‘An unknown error occured. Please try again. If the problem keeps occuring, please contact ‘. $settings[‘owner_name’] . ‘.’; }
}
} else { $message = ‘The e-mail address you supplied (‘ . $_POST[‘mail’] . ‘) is not valid. Please click the back-button and try again.’; }
} else { $message = ‘The website you supplied (‘ . $_POST[‘url’] . ‘) is not valid. Please click the back-button and try again.’; }
}
}
?>
[/code]

I have no idea what to do and i’m really in desperate need of help! Do I have to alter anything on the code?

Help would be greatly apprecieted because I will be away tomorrow onwards and the fanlisting is due while i’m away. ANY relating info would be appreciated!

Thanks very much!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@beaaast337Apr 19.2006 — Does this only happen for this page or does it occur with other PHP pages??

You may wanna try using the longer tags like <?php instead of the short tags. Check if short tags are allowed.
×

Success!

Help @whatsername 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.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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