Hi guys,
I have read related Q&A's for this is question, but still I am confused on this, can somebody help me on this?
What I am doing: my url is : www.mysite.com/home.php
I have two files: home.php and get_data.php, in home.php i am calling get_data.php with the use of jquery. the code for jquery is:
$(document).ready(function(){
$("#btn_submit").bind('click', function(){
$.get('/get_data.php?tnm='+$('#tnm').val(), '', function(data){
$('#get_info').html(data);
});
}); });
Here #tnm is name of the textbox & #get_info is the id of div tag. I am accessing $_GET['tnm'] in get_data.php. What I want is: When I search username with : www.mysite.com/username, I should get that user's result accordingly. How can I rewrite the url for this? Please help! Please feel free for any details.