Skip to main content

Openings for different technoogies.

The $_GET Variable

The predefined $_GET variable is used to collect values in a form with method="get"
Information sent from a form with the GET method is visible to everyone (it will be displayed in the browser's address bar) and has limits on the amount of information to send.

Example

<form action="welcome.php" method="get">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>  

When the user clicks the "Submit" button, the URL sent to the server could look something like this:
http://www.w3schools.com/welcome.php?fname=Peter&age=37
The "welcome.php" file can now use the $_GET variable to collect form data (the names of the form fields will automatically be the keys in the $_GET array):
Welcome <?php echo $_GET["fname"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
 

When to use method="get"?

When using method="get" in HTML forms, all variable names and values are displayed in the URL.
Note: This method should not be used when sending passwords or other sensitive information!
However, because the variables are displayed in the URL, it is possible to bookmark the page. This can be useful in some cases.
Note: The get method is not suitable for very large variable values. It should not be used with values exceeding 2000 characters.

Comments

Popular posts from this blog

Openings for different technoogies.

 

We are Hiring Mobile Engineer Lead

Experience required for the Job: 8 - 10 years Job Location: Bengaluru/Bangalore Invensys Skelta is looking for Lead Mobile app engineers to drive the mobile strategy globally for its multiple products. The candidate should be enthusiastic to further the knowledge of cross-platform and multi-platform development and who makes things happen. Successful candidate will work closely with the project managers and development team globally to develop ideas, concepts, and solutions for mobile apps that help the brand meet their objectives. Person Specification: *    An expert in either iOS, Android or Windows Phone 8 *    Passion for Research & Development, and believes in simple, intuitive and scalable mobile applications that can help solve some of the biggest and complex problems *    An interest in techniques for producing portable cross-platform code and an attention to detail in all aspects of the development process; whether it"s making yo...

Looking for Drupal Themer

Location : Bangalore Position : Drupal Themer Job Responsibilities: • Work with Drupal Developer in porting pages to Drupal • Responsible for building Drupal themes and template files for themes for requirements specified Preferred profile: Strong Knowledge of Drupal coding standards. Strong grasp of semantic, HTML and CSS based design • Experience in converting PSDs and into functional Drupal themes from scratch • Experience in creating well-commented, Zen-based subthemes (http://drupal.org/project/zen) from provided layered Photoshop compositions, including creating and editing templates for different node-types and pages, editing .info files, and adding additional theme settings using the Drupal Form API. • Experience in adding, editing and deleting pages, users, user groups, blocks, and block areas on a pre-existing Drupal installation based on provided directions, text, pictures and wireframes • Experience in testing and modifying Drupal themes and stylesheets to ensure consistent...