진행중

A simple HTML form that uses AJAX/PHP to access MySQL

I have a MySQL database which I access though PHP. I want to create a dynamic webpage where if a certain field in the MySQL data contains a value (say "ON" instead of "OFF"), then the webpage displays an HTML form. I only want the HTML form to display if the value in the database is "ON" instead of "OFF". It needs to automatically disappear if the value in the MySQL database changes to "OFF". It's fine if this check/refresh (AJAX?) happens every five seconds or so - but it can't make the form hard to use (i.e. I don't want the whole page refreshing every five seconds so that someone can't actually fill in and submit the form).

The form itself needs to be dynamically generated from PHP/MySQL queries, so I'm thinking an AJAX call that displays the outputs of a PHP script would be fine. However, I don't know how to do the AJAX/JavaScript display stuff.

Here's what I need you to give me:

1. A simple HTML page containing an appropriate AJAX script that would do what I've said above, returning the output of the PHP script in 2 below. The key part is that it needs to be always checking if a value exists in the data base, and not display the form if it doesn't - but it can't make the form reset every time it refreshes. This might be achieved through the PHP output below.

2. A very simple PHP script which checks for a value in the data base, and displays a form. For the purpose of this, it's fine if you just make it display a simple check box with some text and a submit button.

3. I DON'T need it linked to MySQL. I know how to do that and can do all that later. I just need two simple scripts which I can use as a template. I'll plug it in myself, and if it doesn't work, I'll send you a chat.

I'm sure this will only take someone 10 mins to do, but I don't know how to do it.

기술: AJAX, 자바 스크립트, MySQL, PHP

더 보기: simple html form captcha, application form jquery ajax php mysql, simple html form data inputted convert word, simple html form calculation, simple html form, simple html form script, form login ajax php 2009, html form required field php, freeware create html form collect data access, printing html form data pdf php, html form expand ajax, simple php form lookup phone number mysql, form contact ajax php mysql, dynamic form select ajax php mysql, html form write xml php, simple html form attachment email, ajax script access mysql database php, simple html form creator login, html form append file php, html form change detect php code, simple login form using ajax, html form auto fill php, simple html form paypal

고용주 소개:
( 6건의 리뷰 ) Balmain, Australia

프로젝트 ID: #14924412

수여(프리랜서):

galaxycode

Hello, I can do this project quickly, I'm an expert in PHP and in javascript. Please contact me if you're interested in my work. David Relevant Skills and Experience HTML, javascript, PHP, MySQL Proposed Milestones $ 더 보기

$24 AUD (1일 이내)
(44건의 리뷰)
4.7

프리랜서 12명이 평균 $30 입찰 금액으로 이 일자리에 입찰하고 있습니다.

WebWars

Hello there, I've been developing websites for the past 9 years. Feel free to check my portfolio and ask me any questions you may have. Regards, Babis Relevant Skills and Experience I am greatly familiar with technolo 더 보기

$29 AUD (1일 이내)
(203 리뷰)
7.5
$15 AUD (1일 이내)
(105 리뷰)
6.1
$25 AUD (1일 이내)
(31 리뷰)
4.9
$35 AUD (1일 이내)
(60 리뷰)
5.2
$25 AUD (1일 이내)
(32 리뷰)
4.9
muddassir12

A proposal has not yet been provided

$25 AUD (1일 이내)
(24 리뷰)
4.4
juli808

I have good knowledge in php mysql , i have read your project details and can do it . Relevant Skills and Experience Some of my project [url removed, login to view] [url removed, login to view] http:// 더 보기

$111 AUD (1일 이내)
(3 리뷰)
3.6
$25 AUD (1일 이내)
(7 리뷰)
3.3
gooddevelper

please give me a chance Hi, I read overview of your project carefully. I’m sure that it proper for me because I’m expert I’m always ready for your work and I will give you satisfaction. Relevant Skills and Experienc 더 보기

$15 AUD (2일 이내)
(0 리뷰)
0.0
Avi1905

Need only ratings not money.

$15 AUD (1일 이내)
(0 리뷰)
0.0
bestyandi

Dear,[url removed, login to view] you for reviewing me I have just read your project carefully. I am fully ready for your job. Looking forward to your reply. Relevant Skills and Experience MySql, Laravel, Angular js, Node js,Wordpress,h 더 보기

$20 AUD (1일 이내)
(0 리뷰)
0.0