Actually i didnt get u completely.
Anyway im just trying to help you
you can get username in many ways like using url (GET method), by creating session, cokkies etc or by getting it from database.
I prefer get or session to solve this.
If you are little more specific im sure there will be many more to help you.
danishbacker
Junior Poster in Training
97 posts since Apr 2008
Reputation Points: 10
Solved Threads: 7
I think what you are looking for is .htaccess files which is part of the apachie rewrite module. With .htaccess files, you can make fake urls that on the server side rewrite to the real file.
Example - real url:
site.com/index.php?username=cwarn23&id=blog
Fake url:
site.com/cwarn23/blog/
I would provide some code but I just need to know your real url is including what goes after the ? symbol.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
Here is sample code for you.
file1.php
======
<?php
$no=$_REQUEST["no"];
$name=$_REQUEST["name"];
echo "values - $no and $name";
?>
<br/>First Method
<form method="post" action="file1.php">
No <input type="text" name="no"/>
Name <input type="text" name="name"/>
<br/><input type="submit" namd="cmd" value="Submit"/>
</form>
<br/>Second Method
<a href="file1.php?no=100&name=Mr.X">Send</a>
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241