Showing posts with label form. Show all posts
Showing posts with label form. Show all posts

Saturday, July 2, 2016

reCAPTCHA Contact Form Receive Feedback From Your Visitors

This free php contact form makes receiving email or feedback from your visitors much easier. All your visitors have to do is fill out a simple contact form and hit send. Features reCAPTCHA image verification to reduce spam bots from submitting your form.

Requirements

    PHP 5.2+ – http://www.php.net
    reCAPTCHA API Key – http://www.google.com/recaptcha/whyrecaptcha

Installation

  •     First, you will need to signup for reCAPTCHA API key if you plan on using this feature. This will greatly reduce spam being submitted to your contact form. If you wish to bypass this feature, leave the API settings blank in inc/config.inc.
  •     Edit inc/config.inc to reflect additional settings such as defining custom emails for selection in the form. This allows you to send emails to different divisions of your organization.
  •     Upload the script files to your server.
  •     To modify the appearance of the contact form edit “inc/contact.php”. Just be careful not to destroy any PHP scripting while doing so.

Download reCAPTCHA Contact Form

HTML5 Form Validations with Pattern Matching

This is another Client Side Validation method No JavaScript or jQuery needed, Thanks to HTML5 because validations can now be done using HTML5 without coding of javascript or any server side language, using HTML5 you can validate forms with pattern, Forms must be validate either using client side or server side because it helps you to collect correct data or valid form values from the users, you cannot trust users blindly, let’s see it.
HTML5 Form Validation with Pattern Matching
Read more »

Monday, June 27, 2016

Upload Form PHP Script A PHP Script Which Will Enable You To Upload Files On Your Site

A very simple php script.Simple file upload form for your site.

Features:
  • Limit file types available for upload
  • Maximum file size validation
  • Can rename file after upload to avoid URL guessing
  • Log of uploads can be saved in MySql database. Log includes Filename, file size, IP of the user, date of upload
 Download Upload Form PHP Script

Friday, June 10, 2016

Submit PHP Form without Page Refresh using jQuery Ajax

In today's tutorial i am going to share the most useful jQuery functions $.ajax() and $.post(), using these two functions you can submit the PHP Web Forms without Refreshing the whole Web Page of Your Site, The jQuery get() and post() methods are used to request data from the server with an HTTP GET or POST request, hence $.post() function is a Shorthand Ajax method, so this tutorial will guide you that how to use jQuery's $.ajax() and $.post() functions easily to submit PHP Form Data to the Server Web Page without Refreshing the Page, let's see it in detail.
Submit PHP Form without Page Refresh using jQuery, Ajax
Read more »

Thursday, May 26, 2016

Auto form PHP Script

This class can be used to generate HTML forms to manipulate MySQL table records. It can take a list of MySQL table fields and generate HTML for forms to select, insert, update, delete table records. The class can also perform given validations of specified fields and invoke given callback functions on certain form processing events.


Download Auto Form PHP Script

Code A Simple PHP Contact Form With A Reply To Option

Today I will show to how to code a Contact form in PHP Which also has a Reply To feature.It is very simple to do so using combination of HTML and PHP.

The Code for the form is given below:

Form Code:
<form action="procesar_form.php" method="post" name="formulario" id="formulario" onsubmit=return validarFormulario()>
<label for="nombre">Nombre </label>
<input type="text" name="nombre" id="nombre" size="60"/>

<label for="apellido">Apellido </label>
<input type="text" name="apellido" id="apellido" size="60"/>

<label for="email">Email </label>
<input type="text" name="email" id="email" size="60"/>

<label for="comentarios">Comentarios</label>
<textarea name="comentarios" id="comentarios" cols="44" rows="10"></textarea>

<input type="button" name="enviar" id="enviar" value="Enviar" onclick="validarFormulario()" /></textarea>

</form>

PHP Code
$email = $_POST[email];


$to = xyz@gmail.com;
$subject = Contacto Us;
$message = Name: . $_POST[name] . " " .
Surname: . $_POST[surname] . " " .
Email: . $_POST[email] . " " .
Comments: . $_POST[comments];
$headers = From: $email . " " .
Reply-to: $email . " " .
X-Mailer: PHP/ . phpversion();


mail($to, $subject, $message, $headers);


header("Location: ../../index.html");

Just put it all together and you are ready to go.I hope you enjoyed this free php script

Enjoy!

Tuesday, May 24, 2016

A simple Validation Form in PHP

Today I am going to share a simple script in PHP which does the validation when user registers with your site.It is a very simple one and aimed at a complete newb.I am not going to discuss much about the script as it is pretty much self explanatory.The script is given below:

<?php 
}
else {
$usr = new Users;
$usr->storeFormValues( $_POST );
$n6 = 6;

if( $_POST[password] == $_POST[cpassword] ) {
echo $usr->register($_POST);
}
else {
echo "Password and Confirm password not match";
}

if( $_POST[username] < $n6 ) {
echo "Username must be more than 6 characters.";
}
else {
echo $usr->register($_POST);
}

if( $_POST[password] < $n6 ) {
echo "Password must be more than 6 characters.";
}
else {
echo $usr->register($_POST);
}
}
?>
Thats it with it.You may change it according to your needs.Besides, if your are working on a Registration form then you will also find the Login Form in PHP interesting.

Enjoy!

Tuesday, May 17, 2016

Simple HTML Form Validation using jQuery

We have seen server side form validation using PHP and Client Side Validation using HTML5, and there is also another way to validate HTML forms using jQuery, you can set user defined error messages and it's easy to handle form validations using jQuery, so this tutorial will show you that how to use jQuery to validate forms, we must validate the forms either client side or server side to store and get authenticate details from the users, so this one is also easy to implement in your webpage forms, so take a quick look at this tutorial.
Simple HTML Form Validation using jQuery
Read more »

Friday, May 13, 2016

Server Side Form Validations using PHP

In this post you'll learn, How to Validate Forms Using PHP,  Server Side Form Validations are more Secure and works seamlessly with all kind of browsers, After Making an HTML Form you have to validate it and PHP has a wide variety of functions and  features to help you to Validate forms. So we will create User Registration Form at first and then we will validate it by using PHP functions.

Server Side Form Validations using PHP
Read more »

Tuesday, May 10, 2016

PHP HTML Form Example

Use this example as a form walkthrough. We will briefly build an HTML form, and call the form data using PHP. PHP offers several methods for achieving this goal, so feel free to substitute alternative methods as you follow along. Our example will show you a method using a single .php file, combining both PHP and HTML in one simple text file, to retrieve the data and display the results. Below is a quick review of bullets, check boxes, text fields, and input fields and using them to build a form to retrieve some personal information about our user.

Building the HTML Form

Step 1 is to build the form document to retrieve user date. If you already experienced using HTML forms, this should be review, however, if not we recommend a brief visit through the Tizag HTML Forms Tutorial. The code below shows a simple html form document set up to retrieve some personal knowledge about our user.

Input Fields

Input fields are the simplest forms to grasp. As mentioned in the Forms Tutorial, just be sure to place the name attribute within the tags and specify a name for the field. Also be aware that for our forms action we have placed the $PHP_SELF super global to send our form to itself. We will be integrating more PHP code into our form as we continue on so be sure to save the file with a .php extension.

Code:

<html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $PHP_SELF;?>"> First Name:<input type="text" size="12" maxlength="12" name="Fname">:<br /> Last Name:<input type="text" size="12" maxlength="36" name="Lname">:<br />

Radios and Checkboxes

The catch with radio buttons lies with the value attribute. The text you place under the value attribute will be displayed by the browser when the variable is called with PHP.
Check boxes require the use of an array. PHP will automatically place the checked boxes into an array if you place [] brackets at the end of each name.

Code:

... Gender::<br /> Male:<input type="radio" value="Male" name="gender">:<br /> Female:<input type="radio" value="Female" name="gender">:<br /> Please choose type of residence::<br /> Steak:<input type="checkbox" value="Steak" name="food[]">:<br /> Pizza:<input type="checkbox" value="Pizza" name="food[]">:<br /> Chicken:<input type="checkbox" value="Chicken" name="food[]">:<br />

Textareas

In reality, textareas are oversized input fields. Treat them the same way, just be aware of the wrap attribute and how each type of wrap will turn out. PHP relys on this attribute to display the textarea.

Code:

... <textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea>:<br />

Drop Down Lists & Selection Lists

These two forms act very similar to the already discussed radio and checkbox selections. To name a selection form, place the name attribute within the select tags at the beginning of the form, and then place the appropriate value to fit each option.

Code:

... Select a Level of Education:<br /> <select name="education"> <option value="Jr.High">Jr.High</option> <option value="HighSchool">HighSchool</option> <option value="College">College</option></select>:<br /> Select your favorite time of day::<br /> <select name="TofD" size="3"> <option value="Morning">Morning</option> <option value="Day">Day</option> <option value="Night">Night</option></select>:<br />

Be sure to check through your code to double check for bugs or errors especially look at each name attribute to be sure your names are all correct. As far as names go, you can copy the ones shown or simply make up your own, just be sure you remember what they are. Your form should be similar to the one shown here.

Display:


First Name::
Last Name::

... Gender::
Male::
Female::
Please choose type of residence::
Steak::
Pizza::
Chicken::

... Select a Level of Education:
:
Select your favorite time of day::
:

Submission Button

We mentioned that the submission button was missing. Nows the time to throw it into the existing code. The button is the same as any submission button, the only thing we need to be sure to add is a name to it so we can call it later using PHP.

Code:

... <input type="submit" value="submit" name="submit"><br /> </form><br />


Retrieving Form Data - Setting up Variables

In PHP there lies an array used to call data from our form. Its a superglobal of PHP and its one that is great to have memorized. $_POST retrieves our form data and outputs it directly to our browser. The best way to do this, is to make variables for each element in our form, so we can output this data at will, using our own variable names. Place the following lines of code at the top of your form file using the correct PHP syntax.

Code:

<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; ?>

All we are doing here is making easier variable names for our form output. With the above statements, we can call our data with ease! Any capital letters under the name attribute must match up with your statements above, avoid overly complicated names to simplify your debugging process and it can save you some frustration as well.

$PHP_SELF; - Submission

For the form action, we will call PHPs $PHP_SELF; array. This array is set up to call itself when submitted. Basically, we are setting up the form to call "formexample.php", itself. Heres a glypmse of how to do just that.

Code:

... $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; ?> <html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $PHP_SELF;?>">

We now have a completed form ready to receive data and display results. However, we need to adjust things so that once the data has been submitted we are directed to the results. Typically, we have a completely new .php file that receives our HTML form data. In this scenario, we will use an if statement to display first our form, and then our form results upon submission. This is a practical method when entering information into databases as you learn more.
For now heres a look at our completed form document thus far.

Code:

<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; ?> <html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $PHP_SELF;?>"> First Name:<input type="text" size="12" maxlength="12" name="Fname"><br /> Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br /> Gender:<br /> Male:<input type="radio" value="Male" name="gender"><br /> Female:<input type="radio" value="Female" name="gender"><br /> Please choose type of residence:<br /> Steak:<input type="checkbox" value="Steak" name="food[]"><br /> Pizza:<input type="checkbox" value="Pizza" name="food[]"><br /> Chicken:<input type="checkbox" value="Chicken" name="food[]"><br /> <textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br /> Select a Level of Education:<br /> <select name="education"> <option value="Jr.High">Jr.High</option> <option value="HighSchool">HighSchool</option> <option value="College">College</option></select><br /> Select your favorite time of day:<br /> <select name="TofD" size="3"> <option value="Morning">Morning</option> <option value="Day">Day</option> <option value="Night">Night</option></select><br /> <input type="submit" value="submit" name="submit"> </form>

Page Display

At this point we have a completed form with correct action and submission. We now need to do a little programming to achieve what we want displayed before and after a certain event. Before the user submits any information. We need to first direct them to our form (obviously) and second, we will display their results using our variable names.
PHP offers an excellent way to create this effect using an if statement. Place the following lines near the top of your formexample.php file.

Code:

<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; if (!isset($_POST[submit])) { // if page is not submitted to itself echo the form ?>

Echo Back the Results

Here, we echo back the results in a boring, line by line method, just to show some basic syntax.(feel free to be creative here) We use the else clause of our if statement to direct the users to our results section.

Code:

... <option value="Night">Night</option></select> <input type="submit" value="submit" name="submit"> </form> <? } else { echo "Hello, ".$Fname." ".$Lname.".<br />"; echo "You are ".$gender.", and you like "; foreach ($food as $f) { echo $f."<br />"; } echo "<i>".$quote."</i><br />"; echo "Youre favorite time is ".$TofD.", and you passed ".$education."!<br />"; } ?>

Heres the completed code

Code:

<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; if (!isset($_POST[submit])) { // if page is not submitted to itself echo the form ?> <html> <head> <title>Personal INFO</title> </head> <body> <form method="post" action="<?php echo $PHP_SELF;?>"> First Name:<input type="text" size="12" maxlength="12" name="Fname"><br /> Last Name:<input type="text" size="12" maxlength="36" name="Lname"><br /> Gender:<br /> Male:<input type="radio" value="Male" name="gender"><br /> Female:<input type="radio" value="Female" name="gender"><br /> Please choose type of residence:<br /> Steak:<input type="checkbox" value="Steak" name="food[]"><br /> Pizza:<input type="checkbox" value="Pizza" name="food[]"><br /> Chicken:<input type="checkbox" value="Chicken" name="food[]"><br /> <textarea rows="5" cols="20" name="quote" wrap="physical">Enter your favorite quote!</textarea><br /> Select a Level of Education:<br /> <select name="education"> <option value="Jr.High">Jr.High</option> <option value="HighSchool">HighSchool</option> <option value="College">College</option></select><br /> Select your favorite time of day:<br /> <select name="TofD" size="3"> <option value="Morning">Morning</option> <option value="Day">Day</option> <option value="Night">Night</option></select><br /> <input type="submit" value="submit" name="submit"> </form> <? } else { echo "Hello, ".$Fname." ".$Lname.".<br />"; echo "You are ".$gender.", and you like "; foreach ($food as $f) { echo $f."<br />"; } echo "<i>".$quote."</i><br />"; echo "Youre favorite time is ".$TofD.", and you passed
".$education."!<br />"; } ?>

Sunday, April 24, 2016

How to Download Form 16A from TRACES

Form 16 download from TRACES
2014-15 ????????????????? ????????? ?????????????? TDS Return ??? ?????? ?????????? ???? ???? ???? ?????? ?????????? ?????? ???????????????? Form 16 ????????? ?????? ????? ??????? ??????. ?????????? ??????? ?????? ??????? ??????????????? ?????? ?????? ???? (DDO) ????????? TDS Certificate ??? Form 16. ????? 31 ?? ???????? ???????????? ??????? ?????? ????? ??????????????? ??? ???????????????????? Section 203 ????????. ??????? ?????????????? Form 16 ????????? ?????? ????????? ????? ?????? ???????????.

Form 16 ?? ????? ????????????. Part A ??? Part B ???. Part A ????? ??? ?????? ?????? ??????? ???????? BIN ??????? ?????? ?????????? ????????. ????? "Details of Tax Deducted and deposited in the Central Govt Account through Book Adjustment" ???? ??????????? ????? ?????? ?????? ?????? ????? ????? ????????????. ??????????????? TAN ??????? TRACES ??? ??????????? ?????? ???????? ????????? Form 16 Part A ????????? ????????? ?????????????.
Part B ????? ??? ??????, ??????????, ??????, ????, ??? ?????? ?????? ?????????? ????????. (??????????????? ?????????? Income Tax Statement ?????????????????? Form16 ???? ?????? ???????????????????).
2014-15 ?????????? ???????????? ???????? ???????? ?????????????? ???? ?????? ?????????????? ?????? ????? ??????????????? ????? ????????????? ??????? Form 16 ????? Part A ???????. Part B ?????? ???? ????? ????????????? ?????? ?????????? ?????? ????? ???????. Part A ????? B ????? DDO ??? ????? ????????????. ????? 31 ??? TDS Certificate ????????????????? ????? ??? ??????????? 100 ??? ??????? ???.
Form 16 ???? Part A ??????????? TRACES ? ??????? ????????? ??????????????? ??????? ???????. ????? TRACES ? ?????????????? TAN ????????? ???????????????. ????????? ???????????????????? Username, Password, TAN Number ?????? ?????????? login ???????. (TRACES ? ????????? ??????????????? ????? ???????? ?????????? ????? ???????? ???????
TRACES ????? ????????? ?????????????????? ????? ???????? ???????) Login ???????? ?????????? ????? "Downloads" ? ???????? ??????????? ?????? dropdown menu ??? Form 16/16A ? ???????? ???????.
?????? ????? window ????????

???????????? ????????????? Form 16 ????????? ??????? Bulk PAN Download ???????? ????????? Financial Year ? 2014-15 ????? ??????? ???????. ????????? ?????????? "GO" ???????? ???????. ?????? ???????? ???? ????????.
(?????? ?????? ?????? ?????? Form 16 ???????? Search PAN ???????? ????????? Financial Year ??????? ???????????? PAN ??????? ADD ????? ???? ????????????? "GO" ???????? ???????.)

Form 16 ? ?????? DDO?? ??????????? ???????? ? ????? ?????. ????????? ?????????? ???????? "Submit" ???????? ???????. (DDO?? ??????????? ?????????? ???????????? ????????? ?????????????????? "Cancel" ???????? ?????? Profile ????? ???? ????????? ????????.) ????? ??? ???????? ????? ?????????.

? ????? ??????????????? Financial Year ?? ?????????????? Quarter ? ??? ????? TDS return ???? 15 ???? Provisional Receipt Number (Token Number)???????? ????????. ????? ???? "Please select if the payment was made by book adjustment" ?????????? ??????????? ???? ??????? ???????? ?????? tick mark ????.
????? ???? ? Quarter?? ?????????? ??? ???o ????????????? ? ???? ?????? ??????? ?????????? ?????? ???????????? PAN ??????? ??? ? ???????? ????? ??????? ????????????????. "Date on which tax deposited" ???? ???????? ? ??????????? ?????????? ?????????. ????? ????????? ????????? PAN ??????? ??? ?????? ??????? ????????. (1000 ??????? ?????? 1000.00 ????? ????????????????)
???????? "Proceed" ???????? ???????. ??? ??????? data Traces ?? ?????????????? ?????? ????????????????? ??? Download Request Confirmation ????? ??????.

???????? Request Number ????? ????????. ???????? ? ????? ??????? Form 16 ????????? ???????. ????? ??? 16 ????? ?????? ?????????????. ??? ????? ??????????? ?????? Form 16 ??????? ????????????? ???????. (????? ??????????? ???????????? ????????? ??????????.)
"Downloads" ? ???????? ??????? ?????? "Requested Downloads" ???????? ???????. ?????? ???????? ???? ????????.

???? "Request Number" ?????? ???? "Go" ???????? ???????. ?????????? "View all " ?? ?????? ??????? ???????? ???????. ?????? ???????????? ?????????? ??? ?????? ??????? ?????????? ???????? ?????. ???? "Status" ???? ???????? "Submitted" ??????? ?????????????? ????? ???? ???????????????? ????. ? ???????? "Available" ????? ???????? ? ?????? ???????? ?????? select ???????. ????? ????????? "HTTP Download" ???????? ???????. ????? Form 16 zipped file ????????? ????????????.
? zipped file ?????? ?????? ??????? desktop ? paste ???????.
????????? ????? ? ????? ??????? Form 16 pdf file ??? ???????? "TRACES Pdf Generation Utility" TRACES ??????? ??????? ????????? ???????. ??? ??? ????????????? ???????. Traces? login ?????? Downloads ? ???????? ??????????? ?????? dropdown list? "Requested Downloads" ???????? ???????. ?????? ?????????? ????? Attention Deductors ???????? ???? ?????? ??????? Click Here ??????? ???????? ???????. ????? ???????? ????? ?????????. ???? ??????? "Verification Code" ????????? ???????? ??????? "Submit" ???????? ???????. ?????? ?????????? ????? TRACES Pdf Converter ???? ??????? ???????? ???????.

????? TRACES Pdf converter ???? zipped file ????????? ????. ?????????????? Desktop ?????? ??? ?????? ????? ???? unzip ???????. TRACES Pdf Converter ???????????????????? Java Software ???????????. ?????????? ??? ????????? ???????. ????? ???? TRACES Pdf Converter ???? ????? ????????.

???????? "Run" ???? ??? ???????????? ???????. ?????? TRACES Pdf Converter ????????.

???? Select Form 16/16A Zipped File ???????? ????????? "Browse"? ???????? ???????. ????????? ??? ??????? desktop? ???? Form 16???? zipped file ???????? ?????? ?????? ??????????.
Password for input file ?? ???? TAN ????? password ??? ????????.
Save to folder ???????? ???? browse? ???????? ?????? ????????? Form 16 save ???????????????? ????? ????????.
????????? ??????? ????????? "Proceed" ???????? ???????.
?????? ?????????? ?????? ??????? Do you want to continue without Digital signature ???????? ???? "Yes" ???????? ???????.
?????? ??????? Starts pdf generation ???????? "OK" ???????? ???????.
?????? 1 pdf generated successfully ???? message box ?????? Form 16???? pdf file ??????? ??? ??????? ???????? ???? ?????????????????.