Help Needed Here

Started on the old forum in December 2008 · view the original in the archive · old links redirect here

12 replies · 826 views · started 17 years ago · 1 min read

4 participants
johnny Junior · 47 posts #1

well at my site i getting bit of problem when new registers at my site they are gender are not setted n they shemale n even bday n location while registering cant be setted n i cant see their browsers just if they use opera or mozilla i can see it n in wml some users are geting error like file format unknown so can i get some help here to sort it out 🙂 thanks 😕

Learner lolz

johnny Junior · 47 posts #2

any help

Learner lolz

inet Senior · 264 posts #3

QUOTE (johnny @ Dec 22 2008, 05:19 AM) <{POST_SNAPBACK}>

any help

be specific... can you post here your website... or post here any pictures about the error... how can we solve it without knowing the specific items one by one...

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

something else Fellow · 2,296 posts #4

lava what else lol quick fix is to register globals on but it may cause you problems later with hackers lol

johnny Junior · 47 posts #5

i have sorted out with the globals but now i m facing 1 problem that when new user registers at my site it shows them as shemale gender even though they set their gender to male/female while registering nd cant even see asl

Learner lolz

something else Fellow · 2,296 posts #6

you havent registed globals on properly otherwize you wouldnt be getting that problem 😛

the other way to do it is to use:

$sex = $_POST["sex"]; $age = $_POST["age"]; $location = $_POST["location"];

etc or what ever your sting names are 😛

inet Senior · 264 posts #7

QUOTE (something else @ Dec 22 2008, 02:58 PM) <{POST_SNAPBACK}>

you havent registed globals on properly otherwize you wouldnt be getting that problem 😛

the other way to do it is to use:

$sex = $_POST["sex"]; $age = $_POST["age"]; $location = $_POST["location"];

etc or what ever your sting names are :P

just add this to register.php

ok...

you should put this there... just add it in register.php

Services

Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

Below is a list of services I offer:

Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

Rates

General consulting – My current hourly rate is $100 / hour. Custom Wapsite Community - My current rate is $500 / Wap Community Development.

johnny Junior · 47 posts #8

$uid = $_POST["uid"]; $pwd = $_POST["pwd"]; $cpw = $_POST["cpw"]; $usex = $_POST["usex"]; $uloc = $_POST["uloc"]; $bday = $_POST["bday"]; connectdb(); $brws = explode(" ",$_SERVER[HTTP_USER_AGENT] ); $ubr = $brws[0]; $ipr = getip(); $uip = explode(".",$ipr); </br> isnt this right one

Learner lolz

something else Fellow · 2,296 posts #10

if its still not working then your function in core.php has the strings mixed up round the wrong way 🙂 function register($sex,$bday,$pwd); etc is mixed round the wrond way 🙂

johnny Junior · 47 posts #11

QUOTE (something else @ Dec 23 2008, 01:49 PM) <{POST_SNAPBACK}>

if its still not working then your function in core.php has the strings mixed up round the wrong way 🙂 function register($sex,$bday,$pwd); etc is mixed round the wrond way :)

this is what from core.php</br>$rform = "$errl

"; $rform .= "<form action="register.php" method="post">"; $rform .= "$ue UserID: <input name="uid" format="*x" maxlength="15"/> "; $rform .= "$pe Password: <input type="password" name="pwd" format="*x" maxlength="30"/> "; $rform .= "$ce Password: <input type="password" name="cpw" format="*x" maxlength="30"/> "; $rform .= "Birthday:(e.g.1985-05-01) <input name="tfbdy" format="NNNN-NN-NN"/> "; $rform .= "Sex:"; $rform .= "<select name="usx" value="M">"; $rform .= "<option value="M">Male</option>"; $rform .= "<option value="F">Female</option>"; $rform .= "</select> "; $rform .= "Location: <input name="ulc" maxlength="100"/> ";

$rform .= "<input type="submit" value="Register"/>"; $rform .= "</form>"; return $rform;

}

Learner lolz

darkdesire Senior · 250 posts #12

your problem may be with register.php when i first got the script i had the same problems, i've copied a working register.php below, remember though if you use a wap and web version you'll need to check both versions of the site, as you say its only some browsers this may be your problem (with the wap version) in which case just edit the wml version of register.php to add the missing fields

CODE<?php header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); //header('Content-type: application/vnd.wap.xhtml+xml'); echo "<?xml version=\"1.0\"?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; ?>

<html xmlns="http://www.w3.org/1999/xhtml"> <?php $uid = $_POST["uid"]; $pwd = $_POST["pwd"]; $cpw = $_POST["cpw"]; $email = $_POST["email"]; $ubr = $_POST["browserm"]; $usx = $_POST["usx"]; $day = $_POST["day"]; $month = $_POST["month"]; $year = $_POST["year"]; $ulc = $_POST["ulc"]; $info = $_POST["info"]; $brws = $_POST["brws"]; $usex = $_POST["usex"];

include ("config.php"); include ("core.php");

connectdb(); $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $brws = explode("/",$_SERVER['HTTP_USER_AGENT']); $ubr = $brws[0];

echo "<head>"; echo "<title>$sitename</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/black_medium.css">"; echo "</head>"; echo "<body>"; $ipr = getip(); $uip = explode(".",$ipr);

if((!canreg())||(isipbanned($ipr,$ubr)))

{

echo "

";

echo "<img src=\"../images/notok.gif\" border=\"0\" alt=\"X\"/>Registration is closed at the moment";

echo "

";

}else{

echo "

";

?>

External image (may be gone)

Allowed characters in userid and password are a-z, 0-9, and -_ only

External image (may be gone)

No vulgar words are accepted in Username

External image (may be gone)

Username and Password must contain at least 4 characters

External image (may be gone)

Username must begin with a letter and cannot contain capitals

External image (may be gone)

Password will be case sensitive

<?php $tolog = false; if(trim($uid)=="") { echo registerform(1); }else if(trim($pwd)=="") { echo registerform(2); }else if(trim($cpw)=="") { echo registerform(3); }else if(spacesin($uid)||scharin($uid)) { echo registerform(4); }else if(spacesin($pwd)||scharin($pwd)) { echo registerform(5); }else if($pwd!=$cpw) { echo registerform(6); }else if(strlen($uid)<4) { echo registerform(7); }else if(strlen($pwd)<4) { echo registerform(8); }else if(isdigitf($uid)) { echo registerform(11); }else if(checknick($uid)==1) { echo registerform(12); }else if(checknick($uid)==2) { echo registerform(13); }else if(trim($email)=="") { echo registerform(14); }else if(register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info,$ubr)==1) { echo registerform(9); }else if(register($uid,$pwd,$usx,$day,$month,$year,$ulc,$email,$info,$ubr)==2) { echo registerform(10); }else{ $brws = explode("/",$_SERVER['HTTP_USER_AGENT']); $ubr = $brws[0]; //$fp = fopen("gallery/info.txt","a+"); //fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n"); //fclose($fp); echo "Registration completed successfully! "; echo " **Username:**$uid "; echo "**Password:**$pwd "; if(validation()) { echo "Please give us up to 12hrs to validate you (normally it be done within an hour)"; } $tolog = true; } echo " "; } echo " "; if($tolog) { $msg = "\n Username: ".$uid." \n Password: ".$pwd." \n\n ".$sitename." is a nice friendly chat community we are glad to hav u with us :o) pls feel free to bring ya m8s along \n\n Thank You\n".$sitename.""; $subj = "Registration details for ".$sitename.""; $headers = 'From: [owner@blueslagoon.uk.to](mailto:owner@blueslagoon.uk.to)' . "\r\n" . 'Reply-To: [fiona@scotland.uk.to](mailto:fiona@scotland.uk.to)' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($email, $subj, $msg, $headers); echo "<a href=\"login.php?loguid=$uid&amp;logpwd=$pwd\"><img src=\"../images/home.gif\" alt=\"\"/>Login</a>"; }else{ echo "**0**<a accesskey=\"0\" href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; } echo " "; echo "</body>"; ?> </html>

:p:p:p

darkdesire Senior · 250 posts #13

or better still just overwrite the site with the version i uploaded recently

:p:p:p

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close