Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Young books I need help! HTML/PHP
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TesoMayn" data-source="post: 302733" data-attributes="member: 8605"><p>Well you have to define the $username variable...</p><p></p><p>As Zodiak said</p><p></p><p>[php]if(isset($_POST['username']) && isset($_POST['password'])) {</p><p> if($username == "Jack" && $password == "") {</p><p> echo "Welcome";</p><p> } else {</p><p> $error = 'Hey! Your username or Password is wrong!';</p><p> }</p><p>}</p><p>if($error) {</p><p>echo "<div id=\"errorboxid\">{$error}</div>";</p><p>}[/php]</p></blockquote><p></p>
[QUOTE="TesoMayn, post: 302733, member: 8605"] Well you have to define the $username variable... As Zodiak said [php]if(isset($_POST['username']) && isset($_POST['password'])) { if($username == "Jack" && $password == "") { echo "Welcome"; } else { $error = 'Hey! Your username or Password is wrong!'; } } if($error) { echo "<div id=\"errorboxid\">{$error}</div>"; }[/php] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Young books I need help! HTML/PHP
Top