I am that geek who is working in the programming field, in love with poetry, always appreciate good lyrics and addicted to loud music.
[PHP 5 + XML]: XML Login
A simple tutorial to show how PHP and XML can be use to store user info. For this tutorial, the main purpose is performing login action.
We begin by creating the xml file: (filename: login.xml)
-
-
<?xml version="1.0" encoding="ISO-8859-1"?>
-
-
<users>
-
-
<username>SHiDi</username>
-
<password>c822c1b63853ed273b89687ac505f9fa</password>
-
<fullname>Mohd Rashidi Bin Mohd Zin</fullname>
-
<active>1</active>
-
-
<username>John</username>
-
<password>0659c7992e268962384eb17fafe88364</password>
-
<fullname>John Doe III</fullname>
-
<active>0</active>
-
-
</users>
-
As you can see, this file stores all users information. Password stored are hashed with md5.
Tags: login, php, tutorial, xml
[PHP + MySQL + Javascript]: Dynamic AJAX Form
A simple tutorial on how to create a dynamic AJAX form. As usual, for this tutorial, I’ll be using jQuery, a javascript framework. Other components will be used here are PHP and MySQL, not to forget a little of CSS.
Before we start with the programming part, lets create a table with the following SQL:
-
CREATE TABLE IF NOT EXISTS `new_users` (
-
`users` varchar(60) NOT NULL
-
);
We begin by creating the most important section, the processing file. (File name: process.php):
-
<?php
-
/**
-
* Created on 14 Apr 2008, 23:36:01
-
* @author Mohd Rashidi Bin Mohd Zin
-
*/
-
-
$level = $_GET[‘level’];
-
$name = $_GET[‘name’];
-
-
<a href="http://blog.mohdrashidi.com/sources-for-share/2008/04/15/php-mysql-javascript-dynamic-ajax-form.html#more-62" class="more-link">Read More</a>
Tags: ajax, dynamic form, javascript, jquery, mysql, php



