Käynnissä

javascript-mysql query in php

I shall send you the ftp and mysql details once i hire You. But this task is max 2 hrs.

<html>

<head>

<script language="JavaScript">

function joinFields( ){

[url removed, login to view] = 'Discount1Name:' + [url removed, login to view] + ' Discount1:' +

[url removed, login to view] + ' Discount2Name:' + [url removed, login to view] + ' Discount2:' + [url removed, login to view]

}

</script>

</head><body>

<form action="[url removed, login to view]" method="post" name="fmBuy"

onSubmit="joinFields( )">

<input type="hidden" name="cmd" value="_xclick">

<input type="hidden" name="business" value="[url removed, login to view]"><br>

<input type="text" name="item_name" value="Widget One"><br>

Price: <?php echo "$price"; ?>

<input type="hidden" name="amount" value="<?php echo "$price"; ?> <br>

<input type="hidden" name="currency_code" value="USD">

Discount Coupon 1 <input type="text" name="custom1" > <br>

Discount 1 Amount <?php echo "$disc1"; ?><input type="hidden" name="custom2" value="<?php echo "$price"; ?> <br>

Discount Coupon 2 <input type="text" name="custom3" > <br>

Discount 2 Amount <?php echo "$disc2"; ?><input type="hidden" name="custom4" value="<?php echo "$price"; ?> <br>

<input type="hidden" name="custom" value="">

<?php $fprice=$price-$disc1-$disc2; ?>

Final Price <input type="hidden" name="amount" value="<?php echo "$fprice"; ?>

<br>

<input type="image" src="[url removed, login to view]" border="0" name="submit">

</form>

</body>

</html>

1) When I enter a value in item_name input box. It should fetch the price Automatically from the database table priceitem

2) When I enter the discount coupon code1 . It must fetch the discount percentage automatically from the database calculate the discount amount on price and display.

3) When I enter the discount coupon code 2 . It must fetch the discount percentage automatically from the database calculate the discount amount on price and display.

4) The final Price must update itself automatically.

5) You need to create a table for this purpose

Table: priceitem

Item_name Price

A004 10

A8885 12

Af84 13

Table: priceitem

Discount Code Percentage

A0045 3

A8885 4

Af84 6

Taidot: Javascript, MySQL, PHP

Näytä lisää: javascript mysql query php, usd 305, submit a coupon code, php mysql query form calculate, javascript hire, code for update in php, cgi hire, border html 5, javascript max, javascript and mysql, php hire, send query, query table, mysql query, hire php, script update database mysql, task javascript php, fetch post, database javascript, post form hidden, custom function php, php head script, enter coupon code, display text image javascript, mysql function update

About the Employer:
( 47 reviews ) Kochi, India

Projektin tunnus: #1749677

Myönnetty käyttäjälle:

phpking007

I Can Do In 2 [url removed, login to view] Pm.

$8 USD / tunti
(10 arvostelua)
3.2

9 freelanceria on tarjonnut keskimäärin 11 $/tunti tähän työhön

TeamMagento

Sir, sir, end your search here. Get your AJAX based work done as soon as possible. Please check our private message. Thanks

$8 USD / tunti
(92 arvostelua)
6.5
onedeepen

Hi, please check pmb for portfolio and solution.

$8 USD / tunti
(45 arvostelua)
6.0
lokjaiswal12

Hi, I have understood your requirements.

$8 USD / tunti
(44 arvostelua)
4.8
jasonbourne501

I am highly interested.

$4 USD / tunti
(12 arvostelua)
4.6
WSolutionsinc

Hi sir i understand what you would and i'm ready to do it today. please send me you skype id i will add you or email me here. Thank you

$15 USD / tunti
(21 arvostelua)
4.5
mukhan88

Ready to complete

$8 USD / tunti
(6 arvostelua)
4.1
syncromindproj

Hello. I am available to start right now.

$10 USD / tunti
(0 arvostelua)
0.0
R7a1q5YNJ

Custom software development - The Administrator removed this message due to advertising which breaches our Terms and Conditions.

$33 USD / tunti
(0 arvostelua)
0.0
gurm88

Please check your PMB.

$5 USD / tunti
(0 arvostelua)
0.0