View Full Version : need ajax script ....
gurmeet
06-09-2010, 06:39 AM
hi, i need a script (AJAX based), which interact vd PHP, MYSQL database, and enter a value in table.....
table is
====================
userid- email_id
-----------------------
11- aa@gmail.com
====================
this is the table....
i had made a form in my web page , and i want 2 enter a mail id to invite any friend, and want that id to be stored on database table...
plz give me full codeing for backend anf frontend... (PHP, MYSQL, JAVASCRIPT)
gurmeet
06-09-2010, 07:03 AM
where i can find step by step tutorial?
on line or offline
or ajax scripts for database...
djr33
06-09-2010, 06:38 PM
This is too broad a question to get help here because it is too much work: if you want someone to write this for you, try asking in the paid help section.
If you want to do this yourself, here is where to start:
1. Create a PHP page that adds submitted into to the database. Add any security requirements as necessary. (For example, if they need to login to get to the ajax page, make sure they need to be logged into use the PHP page.)
2. Create your form page, and add Javascript that submits the data as Ajax to that PHP page.
Information for both is available on google-- there are lots of ways to do Ajax, so just take a look around.
Here's a good website for help with php and mysql: http://php-mysql-tutorial.com
Remember that Ajax is a way to use BOTH Javascript and PHP, so this is really two questions in one. If you work on them separately then it'll be easier.
----
Regarding your second post: I merged it into this thread: please do not start a second discussion on the same topic.
As I said above, you are doing two different things: 1. processing data with PHP; 2. submitting data with Javascript [Ajax]. There are many references for (1)-- see my link above, for example. For Ajax, you should not need to worry about any specifics-- just submit the data and deal with the specifics on the server. Here's a google search to get you started: http://www.google.com/search?q=submit+form+ajax For example, the first link looks useful to me.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.