En cours

add stripslashes to php form, add javascript to form

(1) on a php form (/secure/merchant-info/[url removed, login to view] - see image: [url removed, login to view] )… need to add a stripslashes function…

here's the issue… in step 4 of the form, when selecting an alcohol with a single quote ( ' ) in the name (eg. Jack Daniel's) a backslash is displayed (in the liquor details table) once the user clicks 'View Selected'… need to get rid of the backslash. i added this functionality on line: 575 but cannot figure it out here.

(2) need to add some javascript to the following file: /secure/liquordata/[url removed, login to view] (see image: [url removed, login to view] )…

when the user selects 'TYPE' i need javascript to auto populate a hidden input field (code line: 119) that corresponds to the appropriate value for subcat_id.

for example….

if the user selects 'Domestic Beer' i need the 'subcat_id' hidden field to be populated with '8'…

if the user selects 'Gin' i need the 'subcat_id' hidden field to be populated with '2'… and so on… i've created an 'id' tag for each option to let you know what value should populate the hidden field based on selection

need same javascript to be written for when the user selects 'SIZE'. the hidden field (code line: 165)for size is 'subcatSize_id'… ***** i can probably do this part myself after you have created the code for 'subcat_id' *****

let me know if you have any questions.

Compétences : HTML, Javascript, PHP

Voir plus : liquor, javascript to c++, gin, beer, backslash, add info, add functionality, table jpg, php function secure, php tag, form step, single form, form image, auto add, add field code, add quote, table javascript, javascript user type, php step step, issue javascript, javascript issue, hidden auto, php form hidden, quote form php javascript, form input

Concernant l'employeur :
( 19 commentaires ) SAN JOSE, United States

N° du projet : #1633725

Décerné à :

mdjavedakhtar

hi ready to start work

30 $ USD en 1 jour
(22 Commentaires)
5.5

5 freelancers are bidding on average $34 for this job

ProgPro117

Ready to start now! please check pmb

30 $ USD en 1 jour
(36 Commentaires)
5.9
pinoycoder

hi sir, i am ready to do the job. Regards

30 $ USD en 0 jours
(48 Commentaires)
5.3
Wyeoh

Hello, both of the tasks are easy to fix. Let me help you with it. Thanks.

30 $ USD en 1 jour
(18 Commentaires)
4.8
san0425

Hi, We have thoroughly read your requirements and believe that we can deliver exceptional results. Experienced osCommerce developer ready to begin your project. Please check your PMB and let me know. We hope you wi Plus

50 $ USD en 5 jours
(18 Commentaires)
3.9
jTaeRyong

Hello,sir. I can do this job. Please check pmb.

30 $ USD en 0 jours
(4 Commentaires)
2.3