Subscribe To Our Newsletter

Sign Up Now To Get Free Coupon Codes, Event Coupon Codes Updates, Offers Updates. It's 100% Free!

We Hate Spam! Really, It's terrible and we never do it.

Download Input text bar Script And Try this code

Now you can download input text bar script and can use this code directly to any site easily. Try this code.
when you will give any value to input box, that value will be saved to an array and you can get array detail at header. and can get value from it.
use it.
here $inputs is variable of array.
Note : Download Input Text Bar code and  use it to your site directly.


 <?php  
   $inputs = array();  
   if (isset($_POST['submit'])) { //to check if the form was submitted  
     $value = isset($_POST['input0'])? $_POST['input0'] : null;  
     for($count = 1; $value != null; $count++){  
       array_push($inputs, $value);  
       $value = isset($_POST['input'.$count])? $_POST['input'.$count] : null;  
     }  
   }  
   var_dump($inputs);  
   // to access specific index  
   // to take more then 3 inputs just add one more input field in form  
   //echo $inputs[0];  
   /*  
    *  
    *  
    *code here  
    *  
    *  
    *  
    */  
 ?>  
 <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">  
   <!-- to take multiple inputs copy the below line and change name="input" attribute -->  
   Enter input 1:&nbsp;<input type="text" name="input0" value="" /><br />  
   Enter input 2:&nbsp;<input type="text" name="input1" value="" /><br />  
   Enter input 3:&nbsp;<input type="text" name="input2" value="" /><br />  
   <input type="submit" name="submit" value="Submit" />  
 </form>  
Share this article :

Post a Comment

Give your reviews about this blog. Leave your comments. what do you think about this post?

Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.

---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards

 
Support : | Internet Marketing Specialist And Business Developer
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger