Form

Input Output in PHP

by Hiroshi on June 19, 2008

in Form, Input, PHP Basics

Here is how we can post data by a form and display it at using PHP. Create two files index.html and input.php and copy this code in these and try.

{ 0 comments }

This is simple form authentication by a random number generated by PHP and authenticated by javascript. It can be used for spam control.

{ 0 comments }

We use number validation i.e. in phone number field that restrict everything in field except 0 to 1. Some times user wants that phone number should be in in different format i.e. (+92)-(300)-(4269752) instead of +923004269752 and similarly in email address field it is recommended that you just check the presence of . and @. […]

{ 0 comments }

I have a feeling that every bit of any twitchy and creepy thing with web page can be done with a nice JS file. Got a form? Does it validate? Does it smack your face with a boring alert box saying! “Hey! Yo! You did not enter your name? Did you think I was stupid […]

{ 2 comments }

Following script will check that whether user has entered the number or digit in field. e.g. In Phone Number Text Field.

{ 0 comments }

Following method will guide you about how to use an external JavaScript file. Suppose this is the JavaScript code which you have applied in the head section of your web page but you want to call it via an external JavaScript file.

{ 2 comments }

In forms to prevent people from writing jhgkljtb7ibylihyb8lyi in phone TextField use the following script.

{ 1 comment }

Well You can’t remember all the country names, right? So here is the list and example that how to do it when you wanna use that in some form.

{ 0 comments }

User fills up the form and hit submit button and all the variables go to the next page or at the same page to script and script then mails or does something with variables. But what if user did not filled the form and submitted the data and your form did not have validation script […]

{ 0 comments }