It is a good idea to take notes about my project in the blog. Yeah, at the beginning of this subject, accounding to my 0 foundation of website building, I just made my learning proposal with the low goal: using XHTML and CSS at least. Now, it is almost the end of this semester, I am glad that...I am extending my aim all the time...from the beginning XHTML and CSS to a little bit JavaScript, from client side to the server side encoding... Yeah, that is right, I am Learning PHP and MySQL, and already apply them to my project a little bit. It is hard, espectially for me knowing nothing at the beginning. It is quite hard to image how happy when you learn sth and adopt them in your project and they are working succssfully! Moreover, when you solve one skill proplem, you will be enger to have more challenge because you want to make your website better and better. The process you make a website is just like drug... However, there are still a lot of problems with my website and the website is quite simple and kind of stupid, but i am trying my best to do it and i can never thought i can go so far from the beginning which is quite far beyond my original learnning proposal.
This journal is made for that I connected database successfully with my website, and applied the information inside on the webpage dynamically yesterday.
It is simple but I am happy.
Thursday, May 20, 2010
Sunday, May 16, 2010
PHP--session ()
Session() used a lot in PHP. It is used to store the information of users such as usename. This information about users will be stored on the server utill the user leaves this website. Thus, it is a temporary storage.
Identifier UID is created by the session () for every guest to store their variables.
<?php
$username="guest";
if (isset($username))
{
$_session($username);
echo $_session($username);
}
?>
Identifier UID is created by the session () for every guest to store their variables.
<?php
$username="guest";
if (isset($username))
{
$_session($username);
echo $_session($username);
}
?>
Monday, May 3, 2010
Some gain from a practice (I made it!)

I am involved in another subject which has a group project. I was assigned to design a UI for our Encryption/Decryption software Algorithm which is used to input a message and then get the encryption of the plaintext, as well as decryption. You know what, the first idea jumped in to my mind is using some XHTML to creat the UI and a little bit CSS for the decoration. I can do it! I am so glad that I can use my new skills to do something which is useful.
My goal of the UI is clarity and easy to use. Since, it is about a surface for text input and output, I would like to use <form>,for making it clarity, I would combine it with<table>. The result is showed on the left of the page.
There was a very interesting problem I have met during design. It is about the attribute "method" which belong to "form". When I configure it with value "get", the URL would show like this:
/UI.html?Enter+the+message=Meet+you+at+2%3A+00&key=mouse&selection=encryption;
If I set it with the value"pose", the URL would show like this:
/UI.html
So, "Enter+the+message=Meet+you+at+2%3A+00&key=mouse&selection=encryption" will never show in the URL, but actually it still there without visibility.
It is really a detail. I realize the importance of practise. Practise more is the way that can put the information of the book into our mind actually.
My friends said it looks nice. Hehe. I hope so.
Subscribe to:
Posts (Atom)
