machorong's Profile
Reputation: -1
Dishonored
- Group:
- New Members
- Active Posts:
- 6 (0.03 per day)
- Joined:
- 05-October 12
- Profile Views:
- 99
- Last Active:
Oct 17 2012 03:28 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: alert box in php
Posted 9 Oct 2012
We're only needing this for our project this will not go online -
In Topic: alert box in php
Posted 9 Oct 2012
Yo I got it
<?php include 'core/init.php'; include 'includes/overall/indexOver.php'; if (empty($_POST) === false){ $username = $_POST['username']; $password = $_POST['password']; if(empty($username) === true || empty($password) === true) { //$errors = 'you need to enter username or password'; echo "<script>alert(\"you need to enter username or password!\");</script>"; } else if(user_exists($username) === false){ //$errors= 'We can\'t find the username. Have you registered?'; echo "<script>alert(\"We can\'t find the username. Have you registered?\");</script>"; } else if(user_active($username)=== false) { $errors = 'please activate your account'; }else{ $login = login($username, $password); if($login === false){ //$errors[] = 'your username or password is incorrect'; echo "<script>alert(\"your username or password is incorrect?\");</script>"; }else{ $_SESSION['id'] = $login; header('Location: main1.php'); exit(); } } //print_r($errors); } ?> -
In Topic: alert box in php
Posted 9 Oct 2012
so you mean I need to change all of this just to put the alert box that I wanted
well anyway that's cool for me -
In Topic: alert box in php
Posted 9 Oct 2012
@Dormilich- is that so can you help how to do that
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
machorong hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
machorong has no profile comments yet. Why not say hello?