₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,074 members, 8,420,178 topics. Date: Thursday, 04 June 2026 at 12:55 PM

Toggle theme

Neowelsh's Posts

Nairaland ForumNeowelsh's ProfileNeowelsh's Posts

1 2 3 4 5 6 7 8 9 10 (of 34 pages)

BusinessRe: Entrepreneur Turns Boeing 747-Jet To A 27-room Hostel by neowelsh(m): 6:51pm On Sep 05, 2013
this is creativity at its peak.
ComputersRe: I Need Hp 530 Laptop Board by neowelsh(m): 4:55pm On Aug 31, 2013
i have the board, but i base in Bayelsa. sowi
ProgrammingIdeas On How To Setup And ICT HUB by neowelsh(op): 6:09pm On Aug 14, 2013
Brothers please i need information's for the aforementioned, any idea/research work will be highly welcome and appreciated. thanks in advance.
Science/TechnologyRe: Printed Circuit Board (PCB) by neowelsh(m): 1:19pm On Aug 09, 2013
are you sure you know what you posted?
PoliticsRe: WHO, Boko-Haram's Doctor Arrested by neowelsh(m): 1:10pm On Aug 09, 2013
why did they withheld his name? animals
NYSCRe: Suspected Attackers Of Bayelsa Corper Arrested by neowelsh(m): 1:09pm On Aug 09, 2013
wishing you a speedy recovery Miss Folakemi Akinbode. thank God they were caught. last December,i had similar experience, when i saw the machete they where holding, omo, i just gave them my phone and wallet.
Graphics/Video MarketRe: I Need A Photoshop Software Badly by neowelsh(m): 8:52pm On Aug 03, 2013
bin gbagbo: I badly need a photoshop software and guidelines to use for something very very very important.
blessings to anybody that helps me, thank you
go to thepiratebay you get it there, i got my css 6 from there
RomanceRe: Terminally-Ill Bride Gets The Wedding Of Her Dreams by neowelsh(m): 8:50pm On Aug 03, 2013
The first time i watched "A Walk to Remember" i literally cried cry, its so sad, i pray for God to give this lovely couple the strength to fight it till the end embarassed embarassed
WebmastersRe: Disadvantage Of Using Cms Programs, Like Joomla, Wordpress Etc by neowelsh(op): 2:03pm On Aug 03, 2013
of course. thanks
Web MarketRe: Web Designers, Who Can Design Something Like This For Me by neowelsh(m): 12:12pm On Aug 03, 2013
please post the pictures, so i could use it as a code challenge for myself. here is my mail. abelconyoh@gmail.com
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 12:02pm On Aug 03, 2013
sisqology: Warris dis
what does it look like?
WebmastersDisadvantage Of Using Cms Programs, Like Joomla, Wordpress Etc by neowelsh(op): 12:01pm On Aug 03, 2013
hello guru's in the house am a newbie in web development, have come across different CMS plat-form with beautiful templates to edit, which is a very tempting offer than killing yourself trying to code/beautifying/designing . am just wondering if these programs have any disadvantages. what is your take on this? should we continue learning the normal, HTML, PHP, JAVASCRIPT etc or we should just go with the technology on ground. Take us (newbies) as your brother's, what would your advice be?
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 10:53pm On Aug 01, 2013
nollyj: I tested your form below

<form name="Form1" method="post" action="reg.php" enctype="text/plain" id="Form1" onsubmit="return ValidateForm1(this)">
<div id="wb_Text1" style="position:absolute;left:41px;top:62px;width:68px;height:16px;z-index:0;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">username:</span></div>
<div id="wb_Text2" style="position:absolute;left:47px;top:115px;width:68px;height:16px;z-index:1;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">password:</span></div>
<div id="wb_Text3" style="position:absolute;left:50px;top:174px;width:68px;height:16px;z-index:2;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">email:</span></div>
<input type="text" id="Editbox1" style="position:absolute;left:160px;top:58px;width:169px;height:18px;line-height:18px;z-index:3;" name="un" value="" placeholder="please enter a username">
<input type="password" id="Editbox2" style="position:absolute;left:163px;top:119px;width:169px;height:18px;line-height:18px;z-index:4;" name="pd" value="" placeholder="please enter a pasword">
<input type="text" id="Editbox3" style="position:absolute;left:168px;top:175px;width:169px;height:18px;line-height:18px;z-index:5;" name="em" value="" placeholder="please enter an email">
<input type="submit" id="Button1" name="login" value="login" style="position:absolute;left:195px;top:266px;width:96px;height:25px;z-index:6;">
</form>


with my php script

<?php

$input_form_error = array();

if(isset($_POST['login'])){

if(isset($_POST['un'])){

$name = filter_var($_POST['un'], FILTER_SANITIZE_STRING);
}
else{
$input_form_error[] = "Please enter a name";
}

if(isset($_POST['pd'])){

$password = filter_var($_POST['pd'], FILTER_SANITIZE_STRING);
}
else{
$input_form_error[] = "Please enter a password";
}

if(isset($_POST['em'])){

$email = filter_var($_POST['em'], FILTER_SANITIZE_STRING);
}
else{
$input_form_error[] = "Please enter a valid email address";
}

echo $name . " " . $password . " " . $email;
}

?>


While your form is not submitting the input field data is because of this attribute enctype="text/plain". Just remove it.

You can read more about it on this post in stackoverflow http://stackoverflow.com/questions/7628249/method-post-enctype-text-plain-are-not-compatible
Sorry guys for replying late, my account was ban for no reason. I want to say a big thank you to everyone that replied to my cry for help, i really appreciate it.
a special thanks to Dual Core and also to nollyj [/b]for pointing out [b]enctype="text/plain", everything started working immediately i remove enctype="text/plain". may God Bless you guys. happy new month.
EducationRe: Lets Meet( Electrical And Electronics Engineering Undergraduate Students) by neowelsh(op): 8:49pm On Aug 01, 2013
mubybaba: ..eerr hello everyone does anyone know anything about transformers
what do you want to know, about transformer?
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 9:48pm On Jul 31, 2013
Dual Core: It means the html form is not communicating and passing post values to the php processor.

Please post your full html form code and your full php code.

By full form code I mean the code starting from <form> to </form> including the opening and closing form tags.



Also ensure your form's method attribute is "post".
i.e <form method="post" action="processor.php">
assuming your php script is in the same directory and called processor.php.
here is the form

<form name="Form1" method="post" action="reg.php" enctype="text/plain" id="Form1" onsubmit="return ValidateForm1(this)">
<div id="wb_Text1" style="position:absolute;left:41px;top:62px;width:68px;height:16px;z-index:0;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">username:</span></div>
<div id="wb_Text2" style="position:absolute;left:47px;top:115px;width:68px;height:16px;z-index:1;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">password:</span></div>
<div id="wb_Text3" style="position:absolute;left:50px;top:174px;width:68px;height:16px;z-index:2;text-align:left;">
<span style="color:#000000;font-family:arial;font-size:13px;">email:</span></div>
<input type="text" id="Editbox1" style="position:absolute;left:160px;top:58px;width:169px;height:18px;line-height:18px;z-index:3;" name="un" value="" placeholder="please enter a username">
<input type="password" id="Editbox2" style="position:absolute;left:163px;top:119px;width:169px;height:18px;line-height:18px;z-index:4;" name="pd" value="" placeholder="please enter a pasword">
<input type="text" id="Editbox3" style="position:absolute;left:168px;top:175px;width:169px;height:18px;line-height:18px;z-index:5;" name="em" value="" placeholder="please enter an email">
<input type="submit" id="Button1" name="login" value="login" style="position:absolute;left:195px;top:266px;width:96px;height:25px;z-index:6;">
</form>

and this is the script

<?php
$con = mysql_connect("localhost", "root", ""wink
or die("can't connect to mysql database".mysql_error());

$selectdb = mysql_select_db('wysiwyg', $con)
or die("could not select database".mysql_error());

?>
<?php
if(isset($_POST['un'])){$name = $_POST['un'];}
else{die("Name field not being captured"wink;}

$pass = $_POST['pd'];
$email = $_POST['em'];

$sql = "INSERT INTO reg(username, password, email) VALUES('$name', '$pass', '$email')";
if(mysql_query($sql, $con)) {
echo "Congratulations, you are now a member <br/>
click<a href = 'index.html'>here</a> to login ";
}
else
echo "Registration failed";
mysql_close($con);
?>
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 9:38pm On Jul 31, 2013
observation: before i added the isset, when i tried submitting the form, the entry is record/stored in my database with just the id, while the username, password and email remains blank
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 9:31pm On Jul 31, 2013
Dual Core: When you have "undefined index" notices cover the declaration in isset();

so
$name = $_POST['un'];

should be

if(isset($_POST['un'])){$name = $_POST['un'];}
else{die("Name field not being captured"wink;}

The else block, I have added as an error handle for troubleshooting.


P.S: Seun it is my strong hope that the new office and better work environment will give your developers the fortitude to fix the wink smiley that shows up in codes whether they are in the [code] tags or not.
thanks once again, i tried it and got the error report, ie Name field not being captured. could it be that i the form is not functioning? what is the possible cause?
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 9:20pm On Jul 31, 2013
Dual Core: $sql = "INSERT INTO reg(username, password, email) VALUES('$name', '$pass', $email')";


Look at the bolded part. Its missing an opening single quote.
It should be '$email' not $email'

That's just what I have spotted on initial inspection. There could be more issues. Just fix that one and run it.
thank you so much, i cant believe i missed that... here is the new error am getting


Notice: Undefined index: un in C:\xampp\htdocs\signuptest\reg.php on line 11

Notice: Undefined index: pd in C:\xampp\htdocs\signuptest\reg.php on line 12

Notice: Undefined index: em in C:\xampp\htdocs\signuptest\reg.php on line 13
Congratulations, you are now a member
clickhere to login
WebmastersRe: What Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 9:10pm On Jul 31, 2013
CODE-EATER:
the values of dat $_POST, r dey defined in d script dat calls dis one?
thanks for replying. yes they were define in the registration form with a name attribute

here is how it looks
<input type="text" id="Editbox1" style="position:absolute;left:160px;top:58px;width:169px;height:18px;line-height:18px;z-index:3;" name="un" value="" placeholder="please enter a username">
WebmastersWhat Is Wrong With This Simple PHP - MYSQL Script by neowelsh(op): 8:47pm On Jul 31, 2013
please someone should help me solve this little problem, am trying to create a simple connection to mysql database, here is the code

<?php
$con = mysql_connect("localhost", "root", ""wink
or die("can't connect to mysql database".mysql_error());

$selectdb = mysql_select_db('nameofdb', $con)
or die("could not select database".mysql_error());

?>
<?php

$name = $_POST['un'];
$pass = $_POST['pd'];
$email = $_POST['em'];

$sql = "INSERT INTO reg(username, password, email) VALUES('$name', '$pass', $email')";
if(mysql_query($sql, $con)) {
echo "Congratulations, you are now a member <br/>
click<a href = 'index.html'>here</a> to login ";
}
else
echo "Registration failed";
mysql_close($con);
?>


i kept getting this error


Notice: Undefined index: un in C:\xampp\htdocs\signuptest\reg.php on line 11

Notice: Undefined index: pd in C:\xampp\htdocs\signuptest\reg.php on line 12

Notice: Undefined index: em in C:\xampp\htdocs\signuptest\reg.php on line 13
Registration failed



any suggestion will be greatly appreciated
WebmastersRe: I Can't Imagine This! Is CSS This Crazy? by neowelsh(m): 11:15am On Jul 31, 2013
this is stunning, you guys should teach us na
CelebritiesRe: Afrocandy With And Without Makeup by neowelsh(m): 7:59pm On Jul 29, 2013
tsidra: I'm finding it very hard to pick which is uglier. Both are HIDEOUS!!!
why can't you guys let her b? Stop the hatred, i wonder how you look right now, not to talk of when you get to her age
PoliticsRe: Businessman Arrested Over Online Comments About Emeka Offor by neowelsh(m): 7:55pm On Jul 29, 2013
Youngzedd: Don't mind that Johnbull that doesn't know his left and right]
a reminder: all politicians in this country are above the law
PoliticsRe: Businessman Arrested Over Online Comments About Emeka Offor by neowelsh(m): 7:53pm On Jul 29, 2013
Is always like that, when illiterate's lay their hands on money and bribe those miserable black baboons called Nigeria Police.
PoliticsRe: Patience Ignores Protocol & Exchanged Pleasantries Before Jonathan by neowelsh(m): 5:00pm On Jul 17, 2013
Am just curious, how did she get down so fast? Imagine the distance between them. Abi she run?
PoliticsRe: Soyinka Is An Embarrassment To His Admirers – Patience Jonathan by neowelsh(m): 9:48am On Jul 13, 2013
If i may ask, when Yara'dua was our president(may his gentle soul rest in peace), did we hear any of these from his wife? Honestly Mr. president need to caution his wife.
Science/TechnologyRe: Magician Dynamo Levitates From The Roof Of A London Bus by neowelsh(m): 8:44pm On Jun 25, 2013
peckhamboi: If you believe this nonsense, you should be given a very hard and dirty slap.

All the people inside the bus are paid actors who have been told to act as if they saw something.
oooo, i feel sorry for you. Try and study magnetic levitation. Thats the principle behind all these fast moving trains, they levitates. Its just simple physics
Science/TechnologyRe: Riddle Of The Year_still Unanswered by neowelsh(m): 4:27pm On Jun 18, 2013
That man must be hulk to have such weight

1 2 3 4 5 6 7 8 9 10 (of 34 pages)