PDA

View Full Version : Need a little PHP help please



Redline
06-25-2009, 08:15 PM
Ok, making a moderator application and ran into another small PHP problem. You can view the full thread here (http://www.vbhackers.com/f103/need-little-php-help-please-11329/)

After its submitted it creates this in the thread/email

// Check to see if inside U.S.
if (Array['usml_modapp_instates'] == 1)
{
Location: , .
}
// Check to see if outside U.S.
if (Array['usml_modapp_instates'] == 0)
{
Location: Ashoford, UK.
}
This is the code that is being pulled for the thread/email, and I highlighted the problem code in bold

// Build Emails
$subject = "Moderator Application";
$message = "Hello,

A new moderator application has just been submitted!

Position applying for: " . $vbulletin->GPC['position_applying'] . ".
Username: " . $vbulletin->GPC['username'] . ".
Additional Usernames: " . $vbulletin->GPC['additional_usernames'] . ".
First Name: " . $vbulletin->GPC['first_name'] . ".
Last Name: " . $vbulletin->GPC['last_name'] . ".
Birthday: " . $vbulletin->GPC['birth_month'] . "/" . $vbulletin->GPC['birth_day'] . "/" . $vbulletin->GPC['birth_year'] . ".
// Check to see if inside U.S.
if ($vbulletin->options['usml_modapp_instates'] == 1)
{
Location: " . $vbulletin->GPC['city'] . ", " . $vbulletin->GPC['state'] . ".
}
// Check to see if outside U.S.
if ($vbulletin->options['usml_modapp_instates'] == 0)
{
Location: " . $vbulletin->GPC['region'] . ", " . $vbulletin->GPC['country'] . ".
}
Why do you want to help this forum:
" . $vbulletin->GPC['why_
Could someone please tell me how to fix this?

Mike54
06-26-2009, 03:16 AM
I see you've already reached a solution on the other site.

Redline
06-26-2009, 03:20 AM
Yes. Thank you