<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-2460299714439957132</atom:id><lastBuildDate>Fri, 01 Nov 2024 11:31:31 +0000</lastBuildDate><category>jquery</category><category>php</category><category>css</category><category>ajax</category><category>javascript</category><category>mysql</category><title>studentplus</title><description>Student Plus - A great resource to be intermediate to expert in different fields like jquery, css, html, php, joomla, javascript, css3, html5, mysql etc.</description><link>http://student-plus.blogspot.com/</link><managingEditor>noreply@blogger.com (Jogesh_pi)</managingEditor><generator>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>Student Plus - A great resource to be intermediate to expert in different fields like jquery, css, html, php, joomla, javascript, css3, html5, mysql etc.</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-6140006238984836167</guid><pubDate>Tue, 17 Apr 2012 05:42:00 +0000</pubDate><atom:updated>2012-04-17T11:12:07.262+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>Access Database with PDO(PHP Database Object)</title><description>&lt;p&gt;Normally we use simple query to access the &lt;strong&gt;database&lt;/strong&gt; with &lt;strong&gt;PHP&lt;/strong&gt;. But the problem occurs when you have finished your project and after that decide to switching on the other &lt;strong&gt;Database&lt;/strong&gt;?
&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;The question stuck your mind for a while, and all the &lt;strong&gt;Database&lt;/strong&gt; Queries have to modify again with another Database Compatible. To rid this problem simple start to build your project with &lt;strong&gt;PDO(PHP Database Object)&lt;/strong&gt;. &lt;strong&gt;PDO&lt;/strong&gt; gives you the freedom to switch any &lt;strong&gt;database&lt;/strong&gt;, to just change the connection string. Because &lt;strong&gt;PDO(PHP Database Object)&lt;/strong&gt; supports a wide range of &lt;strong&gt;databases&lt;/strong&gt;. You can find all the Supported Database Link in the given post&lt;span class="jp-heighlight"&gt;&lt;a href="http://blog.webtech11.com/2012/04/07/use-phps-pdo-for-database-access.html"&gt;PDO for Database Access&lt;/a&gt;&lt;/span&gt;.&lt;/p&gt;</description><link>http://student-plus.blogspot.com/2012/04/access-database-with-pdophp-database.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-7206018504271631680</guid><pubDate>Fri, 06 Apr 2012 13:51:00 +0000</pubDate><atom:updated>2012-04-06T19:31:51.674+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>ajax image upload</title><description>&lt;p&gt;It is very old fashion to upload an image that select an &lt;strong&gt;image&lt;/strong&gt; and click on the &lt;strong&gt;upload&lt;/strong&gt; button to &lt;strong&gt;upload&lt;/strong&gt; that &lt;strong&gt;image&lt;/strong&gt;. And after that you will get the preview of that uploaded &lt;strong&gt;image&lt;/strong&gt;. In this post we are talking about &lt;span class="jp-heighlight"&gt;&lt;a href="http://blog.webtech11.com/2012/03/18/ajax-based-instant-image-upload.html" target="_blank"&gt;ajax(Asynchronous Javascript And XML) based image upload&lt;/a&gt;&lt;/span&gt;. Because &lt;strong&gt;ajax&lt;/strong&gt; is used to create asynchronous web applications. Means &lt;strong&gt;ajax&lt;/strong&gt; is sending and retrieving the data asynchronously(in the background) without refreshing the page.&lt;/p&gt;
&lt;p&gt;With the use of &lt;strong&gt;ajax&lt;/strong&gt;, just forget to click on the &lt;strong&gt;upload&lt;/strong&gt; button.&lt;/p&gt;
&lt;p&gt;Here is the link where you will find that how to create and &lt;strong&gt;instant image upload&lt;/strong&gt;. Demo also available so that you will check how it looks like.&lt;/p&gt;
&lt;br /&gt;
&lt;p&gt;&lt;span class="jp-heighlight"&gt;Ajax Based Image Upload Link :&lt;/span&gt; &lt;a href="http://blog.webtech11.com/2012/03/18/ajax-based-instant-image-upload.html" target="_blank"&gt;Click Here&lt;/a&gt;&lt;/p&gt;
</description><link>http://student-plus.blogspot.com/2012/04/ajax-image-upload.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-542228182055367841</guid><pubDate>Sun, 08 Jan 2012 06:06:00 +0000</pubDate><atom:updated>2012-01-08T12:03:27.333+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>simple jquery, css drop down effect</title><description>&lt;p&gt;In this post you will found that how to make &lt;strong&gt;simple&lt;/strong&gt; &lt;strong&gt;jquery&lt;/strong&gt; &lt;strong&gt;drop&lt;/strong&gt; &lt;strong&gt;down&lt;/strong&gt; &lt;strong&gt;effect&lt;/strong&gt; on &lt;span class="jp-heighlight"&gt;mouseover&lt;/span&gt;. For this first we will create the &lt;strong&gt;menus&lt;/strong&gt; with the help of &lt;strong&gt;html&lt;/strong&gt; and &lt;strong&gt;css&lt;/strong&gt;. Here are some &lt;strong&gt;html&lt;/strong&gt; :&lt;/p&gt; code: &lt;br /&gt;
&lt;pre class="php" name="code"&gt;
&lt;div id="container"&gt; &lt;ul id="main_menu"&gt;  &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#"&gt;About us&lt;/a&gt;&lt;/li&gt;
  &lt;li class="sub-men"&gt;&lt;a href="#"&gt;Products&lt;/a&gt;&lt;br /&gt;
   &lt;ul id="sub_menu"&gt;    &lt;li&gt;&lt;a href="#"&gt;Product 1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Product that we need&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Product 3&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Product 4&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Product 5&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;  &lt;/li&gt;
  &lt;li&gt;&lt;a href="#"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#"&gt;Enquiry&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;&lt;/div&gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;p&gt;After these &lt;strong&gt;html&lt;/strong&gt; &lt;strong&gt;code&lt;/strong&gt; now we have to give some &lt;strong&gt;&lt;span class="jp-heighlight"&gt;css&lt;/span&gt;&lt;/strong&gt; styles like this:&lt;/p&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="css" name="code"&gt;#main_menu, 
#sub_menu{
 list-style: none;
}

#main_menu &gt; li{
 display: inline;
}

#main_menu &gt; li a{
 padding: 4px 10px;
 background: #dd6600;
 color: #ffffff;
 text-decoration: none;
 font-family:Verdana, Arial, Helvetica, sans-serif;
 font-size: 13px;
 position: relative;
}

#main_menu &gt; li a:hover{
 background: green;
}

#main_menu &gt; li ul{
 position: absolute
}

#main_menu &gt; li ul li{
 margin-bottom: 10px !important;
 margin-left: 2px;
}

#main_menu &gt; li ul li a{
 padding-left: 8px;
}

#sub_menu{
 left: 191px;
 top: 39px;
 margin: 0px;
 padding:10px 10px 10px 0;
 background: green;
 border-radius: 0 5px 5px 5px;
 border: 1px solid #333;
}

#sub_menu li a{
 background: #fff;
 color: #000;
}

#sub_menu li a:hover{
 background: #dd6600;
}
#main_menu &gt; li ul li{
 margin-bottom: 5px;
}

&lt;/pre&gt;&lt;p&gt;Now the final code, i mean the &lt;strong&gt;jquery&lt;/strong&gt; &lt;strong&gt;effect&lt;/strong&gt;. I used &lt;span class="jp-heighlight"&gt;.animate()&lt;/span&gt; instead of &lt;span class="jp-heighlight"&gt;.fadeIn()&lt;/span&gt; and &lt;span class="jp-heighlight"&gt;.fadeOut()&lt;/span&gt;. Here is the &lt;strong&gt;jquery&lt;/strong&gt; codes:&lt;br /&gt;
&lt;/p&gt;&lt;pre class="js" name="code"&gt;$(function(){
  $('#sub_menu').hide();
  $('li.sub-men').hover(function(){
   $('#sub_menu').css('opacity', 0)
        .slideDown('slow')
        .animate(
       {opacity: 1},
       {queue: false, duration: 'slow'}
        );
  }, 
  function(){
   $('#sub_menu').css('opacity', 1)
        .slideUp('slow')
        .animate(
       {opacity: 0},
       {queue: false, duration: 'slow'}
        );
  });
 });
&lt;/pre&gt;</description><link>http://student-plus.blogspot.com/2012/01/simple-jquerycss-drop-down-effect.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-794847463500908714</guid><pubDate>Sun, 20 Nov 2011 09:32:00 +0000</pubDate><atom:updated>2011-11-20T15:02:36.212+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>div scroll with jquery</title><description>&lt;p&gt;&lt;strong&gt;Scrollable&lt;/strong&gt; content area is looking more beautiful when we add some &lt;strong&gt;jquery&lt;/strong&gt; events on it, beside this it will possible throught &lt;strong&gt;javascript&lt;/strong&gt; as well, to make two functions that will call on the &lt;i&gt;mouseover&lt;/i&gt; and the &lt;i&gt;mouseout&lt;/i&gt; html attributes. But in this example we make it more easy with the help of &lt;strong&gt;.hover()&lt;/strong&gt; event represented by &lt;strong&gt;jquery&lt;/strong&gt;. You will found more about the &lt;i&gt;.hover()&lt;/i&gt; event on the jquery official website.&lt;br /&gt;
&lt;/p&gt;&lt;br /&gt;
&lt;pre class="css" name="code"&gt;#container{
 width: 500px;
 height: 200px;
 overflow: hidden;
 margin: 0 auto;
 padding: 3px;
 border: 2px solid #42826C;
 background: #A5C77F;
}
p{
 font: 13px/18px Verdana, Arial, Helvetica, sans-serif;
 padding-right:20px;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;p&gt;Here is the html part:&lt;/p&gt;&lt;pre class="html" name="code"&gt;        &lt;div id="container"&gt;  &lt;p&gt;Enter the text here as much as you want. &lt;/p&gt; &lt;/div&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;p&gt;Now here is the jquery file:&lt;/p&gt;&lt;pre class="js" name="code"&gt;$(function(){
 
 $('#container').hover(
  function(){
   $(this).css({'overflow':'auto'});
  },
  function(){
   $(this).css({'overflow':'hidden'});
  });
});
&lt;/pre&gt;</description><link>http://student-plus.blogspot.com/2011/11/div-scroll-with-jquery.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-7347731573135810356</guid><pubDate>Sun, 06 Nov 2011 11:17:00 +0000</pubDate><atom:updated>2013-02-05T15:55:08.623+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>submit form without page refreshing using jquery, ajax and php</title><description>&lt;p&gt;&lt;strong&gt;Ajax request&lt;/strong&gt; is the most powerful feature of &lt;strong&gt;jquery&lt;/strong&gt;, it helps to send data over the cross domain in the backend. In this post i give the very basic idea to &lt;strong&gt;submit&lt;/strong&gt; &lt;strong&gt;a&lt;/strong&gt; &lt;strong&gt;form&lt;/strong&gt; &lt;strong&gt;with&lt;/strong&gt; &lt;strong&gt;page&lt;/strong&gt; &lt;strong&gt;refreshing&lt;/strong&gt; and get the result. In this script i use some basic &lt;strong&gt;jquery&lt;/strong&gt; and &lt;strong&gt;php&lt;/strong&gt;. If you will apply this script in your own page then, I request you to &lt;a href="http://student-plus.blogspot.com/2011/03/email-validation-using-php.html" target="_blank"&gt;validate&lt;/a&gt; all the data. Lets beautify the form with some CSS codes:&lt;br /&gt;
&lt;/p&gt;&lt;pre class="css" name="code"&gt;label{
 font: 13px/18px Verdana, Arial, Helvetica, sans-serif;
 color: #666666;
}
.inpbox{
 border: 1px solid #999999;
 padding: 2px;
 height:20px;
}
.txtbox{
 border: 1px solid #999999;
 padding: 2px;
 resize: none;
}
.buttn{
 border: 1px solid #999999;
 font: bold 13px/18px Verdana, Arial, Helvetica, sans-serif;
 color: #666666;
 padding: 3px 10px;
}
&lt;/pre&gt;&lt;p&gt;Here is the basic form layout:&lt;br /&gt;
&lt;/p&gt;&lt;pre class="html" name="code"&gt;
&lt;div id="formContainer"&gt;  &lt;form id="myform"&gt;   &lt;table width="600" border="0" cellspacing="1" cellpadding="4"&gt;     &lt;tr&gt;
      &lt;td colspan="2"&gt;&lt;div class="result"&gt;&lt;/div&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td&gt;&lt;label&gt;Name :&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input class="inpbox" size="30" name="name" /&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td&gt;&lt;label&gt;Email :&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input class="inpbox" size="30" name="email" /&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td&gt;&lt;label&gt;Subject :&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;&lt;input class="inpbox" size="30" name="subject" /&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td valign="top"&gt;&lt;label&gt;Query :&lt;/label&gt;&lt;/td&gt;
    &lt;td&gt;&lt;textarea class="txtbox" rows="4" cols="45" name="query"&gt;&lt;/textarea&gt;&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
    &lt;td&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td&gt;&lt;input class="buttn" type="button" value="Send" name="send" /&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;/table&gt;  &lt;/form&gt; &lt;/div&gt;
&lt;/pre&gt;&lt;p&gt;I use table to prevent the browser confliction bug. Now lets start with some jquery stuff, before applying this stuff please insert the jquery source file from &lt;a href="http://www.jquery.com" target="_blank"&gt;jquery&lt;/a&gt; official site or form &lt;a href="http://code.google.com/apis/libraries/devguide.html#jquery" target="_blank"&gt;ajax google api&lt;/a&gt;.&lt;br /&gt;
&lt;/p&gt;&lt;pre class="js" name="code"&gt;
$('input[name="send"]').click(function(){
  var query = $('#myform').serialize();
  
  $.ajax({
   url: 'ajaxForm.php',
   data: query,
   success: function(data){
      if(data == 'send'){
       $('.result').html('Data Send Successfully!');
       
       $('input[name="name"]').val('');
       $('input[name="email"]').val('');
       $('input[name="subject"]').val('');
       $('textarea[name="query"]').val('');
      }
      else{
       $('.result').html('Error to Send Data!');
      }
     }
  });
 });

&lt;/pre&gt;&lt;p&gt;Now as you see in the above jquery codes that i request the a &lt;i&gt;ajaxForm.php&lt;/i&gt; page through ajax request which handles all the data and return the result.&lt;br /&gt;
&lt;/p&gt;&lt;pre class="js" name="code"&gt;
 $name = (isset($_REQUEST['name'])) ? $_REQUEST['name'] : NULL;
 $email = (isset($_REQUEST['email'])) ? $_REQUEST['email'] : NULL;
 $subject = (isset($_REQUEST['subject'])) ? $_REQUEST['subject'] : NULL;
 $query = (isset($_REQUEST['query'])) ? $_REQUEST['query'] : NULL;
 
 if( !empty($name) &amp;&amp; !empty($email) &amp;&amp; !empty($subject) &amp;&amp; !empty($query) ){
  echo 'send';
 }

&lt;/pre&gt;</description><link>http://student-plus.blogspot.com/2011/11/submit-form-without-page-refreshing.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-6083054422628058208</guid><pubDate>Wed, 28 Sep 2011 05:18:00 +0000</pubDate><atom:updated>2011-09-28T10:48:43.326+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><title>Beautify table with jquery selectors :even and :odd</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
If we talk about the Data Represent into the Website than it is better the best way to display your data into tables, cause IE6 creates lots of problem to in CSS to align the data. And Jquery plays his important roll to beautify that tables Data. The &lt;i&gt;:even&lt;/i&gt;, &lt;i&gt;:odd&lt;/i&gt; selectors make it beautiful to represent the data. Here is an example :&lt;/div&gt;
&lt;pre class="js" name="code"&gt;
$('table').css({
	'border-collapse':'collapse'
});

$('tr th').css({'background':'#666666', 'color':'#ffffff', 'font-family':'verdana', 'font-weight':'normal'});

// Here using jquery selectors
$('tr:even').css({'background':'#c3c3c3'});
$('tr:odd').css({'background':'#e3e3e3'});
&lt;/pre&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
This code will output similar as like
&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIWq_eS-6xJnJfGAMvnQyYxgz5Ci4H8gH0k1iZQ8X3Ni9v4eL_11UGnHgYwTD887HXibYmod1kTGAWpLqAmThKRqXoeDDdodLZXZhjnLc4HX5PcDdjaZPvnTUoju3C1lZHO52KWAzd-bRT/s1600/beautify-table-with-jquery.JPG" imageanchor="1" style="margin-left:1em; margin-right:1em"&gt;&lt;img border="0" height="90" width="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIWq_eS-6xJnJfGAMvnQyYxgz5Ci4H8gH0k1iZQ8X3Ni9v4eL_11UGnHgYwTD887HXibYmod1kTGAWpLqAmThKRqXoeDDdodLZXZhjnLc4HX5PcDdjaZPvnTUoju3C1lZHO52KWAzd-bRT/s320/beautify-table-with-jquery.JPG" alt="Jquery Selectors Effects on Table" title="Jquery Selectors Effects on Table" /&gt;&lt;/a&gt;&lt;/div&gt;

</description><link>http://student-plus.blogspot.com/2011/09/beautify-table-with-jquery-selectors.html</link><author>noreply@blogger.com (Jogesh_pi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIWq_eS-6xJnJfGAMvnQyYxgz5Ci4H8gH0k1iZQ8X3Ni9v4eL_11UGnHgYwTD887HXibYmod1kTGAWpLqAmThKRqXoeDDdodLZXZhjnLc4HX5PcDdjaZPvnTUoju3C1lZHO52KWAzd-bRT/s72-c/beautify-table-with-jquery.JPG" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-7835817921026385787</guid><pubDate>Fri, 02 Sep 2011 12:56:00 +0000</pubDate><atom:updated>2011-09-02T18:30:24.683+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Get URL, URL part, URL parameters using javascript</title><description>Getting URL or URL parts through &lt;strong&gt;javascript&lt;/strong&gt; is so easy. We can get protocal using this code :&lt;br /&gt;
&lt;pre class="js" name="code"&gt;	var proto    = window.location.protocol;
	alert( proto );
&lt;/script&gt;
&lt;/pre&gt;this code return "http:" protocol.&lt;br /&gt;
If you want to get host name from the URL using &lt;strong&gt;javascript&lt;/strong&gt; then you can simple write this code:&lt;br /&gt;
&lt;pre class="js" name="code"&gt;
	var hostName = window.location.host;
	alert( hostName );


&lt;/pre&gt;this code return the host name like if you are running this code in local host then it returns "localhost"&lt;br /&gt;
if you want to get path of the URL with &lt;strong&gt;javascript&lt;/strong&gt; then use this:&lt;br /&gt;
&lt;pre class="js" name="code"&gt;
	var pathName = window.location.pathname;
	alert( pathName );


&lt;/pre&gt;this code returns the path name of the current running script like you are running the script in test.html the it return the full path name with filename test.html&lt;br /&gt;
Or if you want to get parameter used in URL with &lt;strong&gt;javascript&lt;/strong&gt; then simply do this:&lt;br /&gt;
&lt;pre class="js" name="code"&gt;
	var params   = window.location.search;
	alert( params );


&lt;/pre&gt;it returns the parameter used in the URL&lt;br /&gt;
&lt;br /&gt;
now lets join all the code :&lt;br /&gt;
&lt;pre class="js" name="code"&gt;	var proto    = window.location.protocol;
	var hostName = window.location.host;
	var pathName = window.location.pathname;
	var params   = window.location.search;

	alert( proto + hostName + pathName + params );

&lt;/pre&gt;&lt;br /&gt;
</description><link>http://student-plus.blogspot.com/2011/09/get-url-url-part-url-parameters-using.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-5101414870718272115</guid><pubDate>Tue, 31 May 2011 08:40:00 +0000</pubDate><atom:updated>2011-05-31T14:23:03.720+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ajax</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>dynamic select box with jquery, php, mysql</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;p&gt;hello friends last Saturday i was working on a Real State project and i need to build a &lt;b&gt;dynamic form&lt;/b&gt; to submit the properties in particular state and cities. I made that &lt;b&gt;dynamic form&lt;/b&gt; with the help of &lt;b&gt;php and jquery&lt;/b&gt;. Here is i describe the codes one by one.&lt;br /&gt;
First of all we need to create a Database. And after that Create Some tables related to your project. I Create a Database name 'test' in phpmyadmin. My these codes are related to this dynamic form you can change the Database name and fields as per your requirements. After create the database create a table, in this example i create a table name 'tbl_class' with these codes : &lt;br /&gt;
&lt;/p&gt;&lt;pre class="sql" name="code"&gt;CREATE TABLE `test`.`tbl_class` (
`id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`name` VARCHAR( 200 ) NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM ;
&lt;/pre&gt;&lt;p&gt;then insert some data with the help of these commands : &lt;br /&gt;
&lt;/p&gt;&lt;pre class="sql" name="code"&gt;INSERT INTO `test`.`tbl_class` (
`id` ,
`name`
)
VALUES (
NULL , '10th Class'
), (
NULL , '11th Class'
), (
NULL , '12th Class'
);
&lt;/pre&gt;&lt;p&gt;with the help of same steps create one more table named 'tbl_student' and also use same insert command to insert the data in 'tbl_student' table.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;now it is the time to connect the database with the help of &lt;b&gt;php&lt;/b&gt;.&lt;br /&gt;
here is an example to connect the database named 'connection.php' .&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;#make Connection
 $hostname = "localhost";
 $username = "root";
 $password = "";
 $dbname = "test";
 
 //Connection layer
 $conn = mysql_connect($hostname, $username, $password);
 
 //Check connection and select DATABASE
 if( $conn )
  mysql_select_db($dbname, $conn);
 else
  die("Error in Connection!");
  
&lt;/pre&gt;&lt;p&gt;now create one more file 'index.php' and create some html stuff.&lt;br /&gt;
for example : &lt;/p&gt;&lt;pre class="html" name="code"&gt;&lt;div&gt;&lt;header&gt;
    &lt;h1&gt;Dynamic Form&lt;/h1&gt;&lt;/header&gt;
   &lt;section&gt;
    &lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;              &lt;td&gt;&lt;label&gt;Class : &lt;/label&gt;&lt;/td&gt;       &lt;td&gt;&lt;br /&gt;
&lt;select id="className" onchange="getStrength()"&gt; &lt;option selected="selected" value="0"&gt;Select Class&lt;/option&gt;  &lt;/select&gt;&lt;/td&gt;      &lt;/tr&gt;
&lt;tr&gt;       &lt;td&gt;&lt;label&gt;Strength : &lt;/label&gt;&lt;/td&gt;       &lt;td&gt;&lt;br /&gt;
&lt;select id="studentStr"&gt; &lt;option selected="selected" value="0"&gt;Select Strength&lt;/option&gt; &lt;/select&gt;&lt;/td&gt;      &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/section&gt;
   
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;include the 'connection.php' file on the top of the 'index.php', like:&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;include 'connection.php';
&lt;/pre&gt;&lt;p&gt;then insert the data in the select option &lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;#insert class data from database
         $query = "select * from tbl_class";
         $result = mysql_query($query) or die("Error in Query!
".mysql_error());
         
         while($row = mysql_fetch_array( $result ))
         {
          echo "&lt;option "'="" .="" id']="" value="&amp;quot; . $row["&gt;" . $row['name'] . " &lt;/option&gt;";
         }
&lt;/pre&gt;&lt;p&gt;now it is the time to use &lt;b&gt;jquery&lt;/b&gt; for the ajax request. Create a function with &lt;b&gt;jquery&lt;/b&gt; to make simple the ajax request.&lt;br /&gt;
here is the code for the ajax request function:&lt;br /&gt;
&lt;/p&gt;&lt;pre class="js" name="code"&gt;&lt;script type="text/javascript"&gt;
 function getStrength(){
  var classID = $('#className').val();
        
  $.ajax({
   url: 'getStrength.php',
   data: 'class=' + classID,
   dataType: 'html',
   success: function( data ){
     $('#studentStr').html( data );
   }
   });
 }
&lt;/script&gt;
&lt;/pre&gt;&lt;p&gt;create a 'getStrength.php' file to get the data through ajax request.&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;if(isset($_REQUEST['class']))
 {
  $classID = (int)$_REQUEST['class'];
  
  $query = "select * from tbl_student where classID = '$classID'";
  $result = mysql_query( $query ) or die("Error in Strength Query!");
  
  if($classID == 0)
   echo '&lt;option selected="selected" value="0"&gt;Select Strength&lt;/option&gt;';
  else{
   while($row = mysql_fetch_array($result)){
   echo "&lt;option "'="" .="" studentid']="" value="&amp;quot; . $row["&gt;" . $row['strength'] . "&lt;/option&gt;";
   }
  }  
 }
&lt;/pre&gt;&lt;p&gt;the above code is for the file 'getStrength.php'. The ajax request send the data to this file and get the result through this file.&lt;br /&gt;
You can beautify this dynamic form with some css effects.&lt;br /&gt;
&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87MsHVPv_RfA8AMHb1Bth1MZqgptayZsSJPk0X-huntccZJmk02eXKTHDGwIE8yXk4iA8N-MxR8itZiGAkZuGtOMMFrYCZrNK3-0UjZQ9wy3rKEWr0Eb91MaiOg5eXBh_Z9ua6HqHlww_/s1600/dynamic-form-using-php.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" title="dynamic form with php and jquery"&gt;&lt;img border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87MsHVPv_RfA8AMHb1Bth1MZqgptayZsSJPk0X-huntccZJmk02eXKTHDGwIE8yXk4iA8N-MxR8itZiGAkZuGtOMMFrYCZrNK3-0UjZQ9wy3rKEWr0Eb91MaiOg5eXBh_Z9ua6HqHlww_/s320/dynamic-form-using-php.jpg" title="dynamic form" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;hopefully you will enjoy this post.&lt;/div&gt;&lt;/p&gt;</description><link>http://student-plus.blogspot.com/2011/05/dynamic-select-box-with-jquery-php.html</link><author>noreply@blogger.com (Jogesh_pi)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg87MsHVPv_RfA8AMHb1Bth1MZqgptayZsSJPk0X-huntccZJmk02eXKTHDGwIE8yXk4iA8N-MxR8itZiGAkZuGtOMMFrYCZrNK3-0UjZQ9wy3rKEWr0Eb91MaiOg5eXBh_Z9ua6HqHlww_/s72-c/dynamic-form-using-php.jpg" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-7227342258354394047</guid><pubDate>Wed, 16 Mar 2011 11:17:00 +0000</pubDate><atom:updated>2012-01-30T15:41:17.786+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>email validation using php</title><description>&lt;p&gt;Form validation is must to prevent spam and form attacks. &lt;a href="http://blog.webtech11.com/2012/01/27/email-validation-with-php-and-jquery/"&gt;Email validation&lt;/a&gt; is also must to making a form. We use Regular Expressions for validation in PHP, which is secure and highly usable on web. preg_match() and ereg() functions are using for validation. But sometimes ereg() function produce some Deprecated Error. To prevent Deprecated Error we use preg_match for &lt;a href="http://blog.webtech11.com/2012/01/27/email-validation-with-php-and-jquery/"&gt;email validation&lt;/a&gt;. Here are some codes for Email Validation :&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;function email_Validate($str)
 {
   if(preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $str)) 
   {
  return true;
   }
 }
 
&lt;/pre&gt;&lt;p&gt;and now we use this &lt;a href="http://blog.webtech11.com/2012/01/27/email-validation-with-php-and-jquery/"&gt;email validation&lt;/a&gt; function in our form&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;if(!email_Validate($email))
 {
  echo "Email not valid!"; 
 }
&lt;/pre&gt;&lt;p&gt;Beside PHP you can validate your email with javascript/jquery. Its quite easy to implement and use with the help of javascript/jquery. Here is my code for jquery and you can also implement these with javascript :&lt;br /&gt;
&lt;/p&gt;&lt;pre class="js" name="code"&gt;var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;

//userMail is a input box name 
var email = $('#userMail').val();

if(reg.test(email) == false)
{
   alert('Email Not Valid');
}
&lt;/pre&gt;&lt;p&gt;this validation help you to prevent spamming in &lt;strong&gt;&lt;a href="http://student-plus.blogspot.com/2010/10/simple-login-system-using-php.html"&gt;login system&lt;/a&gt;&lt;/strong&gt; or registration form.&lt;br /&gt;
&lt;/p&gt;</description><link>http://student-plus.blogspot.com/2011/03/email-validation-using-php.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-1777185123984035416</guid><pubDate>Fri, 29 Oct 2010 11:58:00 +0000</pubDate><atom:updated>2010-10-29T17:36:32.849+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">php</category><title>simple login system using php</title><description>&lt;p&gt;login system is very common in php. In this post you can get an idea to make a login system in php. Before the starting the coding for login system you have to check what you want to represent to the user on login panel. You have to use some CSS to give better look for login panel.&lt;br /&gt;
&lt;br /&gt;
here is php code for login system :&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;// first we check the name of submit button is set or not
if(isset($_POST['submit']))
{
   $name = $_POST['username'];
   $pass = $_POST['password'];

// check the value of input box
   if($name == "")
       echo 'Name field is empty!';
   elseif($pass == "")
       echo 'Password filed is empty!';
   else
   {

      // temporary username and password
      $uname = 'user1';
      $upass = '12345';

      if($name == $uname &amp;&amp; $pass == $upass)
         echo 'Welcome : ' . $uname;
      else
         echo 'Username or Password didn't match!';

   }
}
&lt;/pre&gt;&lt;br /&gt;
&lt;p&gt;You can change username and password as you want. It just a idea for login system. Hope it will help you to develop a login system.&lt;br /&gt;
&lt;/p&gt;</description><link>http://student-plus.blogspot.com/2010/10/simple-login-system-using-php.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2460299714439957132.post-4004386169222031867</guid><pubDate>Fri, 22 Oct 2010 05:09:00 +0000</pubDate><atom:updated>2010-10-29T17:33:31.868+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">jquery</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>echo the php code with the help of jquery and css</title><description>&lt;p&gt;hello friends,&lt;br /&gt;
it's so cool to having work experience with multiple things. In this example i want to share tell a simple way to add css, jquery with php.&lt;br /&gt;
here is my example.&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;$string = "Hello world!";

&lt;/pre&gt;&lt;p&gt;now we have to give some css in our example&lt;br /&gt;
&lt;/p&gt;&lt;pre class="css" name="code"&gt;.p_style{
 color:#ff6600;
 background:#ccc;
 padding:5px;
 }
&lt;/pre&gt;&lt;p&gt;now lets work&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
on some jquery who's gives a nice look to our output&lt;/p&gt;&lt;pre class="js" name="code"&gt;$(document).ready(function(){
   $('#msg').addClass('p_style');
 });
&lt;/pre&gt;&lt;p&gt;and now the final output with our html tags after the body start and before the body end&lt;br /&gt;
&lt;/p&gt;&lt;pre class="php" name="code"&gt;echo "&lt;div id="msg"&gt;" . $string . "&lt;/div&gt;";
&lt;/pre&gt;&lt;p&gt;and you will get a nice and cool output&lt;br /&gt;
&lt;/p&gt;</description><link>http://student-plus.blogspot.com/2010/10/echo-php-code-with-help-of-jquery-and.html</link><author>noreply@blogger.com (Jogesh_pi)</author><thr:total>0</thr:total></item></channel></rss>