18
Feb

This is a simple application to convert all the First Letter of a string to Upper case using AJAX.

Here you have two files: an HTML file and a PHP file.
The HTML file contains the HTML code as well as Ajax code. The PHP file is meant for modifiying the string.
In this example the ajax function which is inbuilt in JQuery is called.
You can download JQuery from the folowing location:

http://jquery.com/

The code for HTML file is given below:


   
A simple comment form with submit validation and default messages *

The code for PHP file is given below. I have named it as check.php

<?php
echo ucwords($_POST['name']);
?>

Save the two files inside a folder in the www directory of Wamp Server. Also include the JQuery file.
Run the HTML file, give the string and see the output.

, , ,


Posted by on 18 Feb 2010 by abhijithvg in jQuery

One Response to “Simple Application using Ajax and PHP”

Add reply

*