Solved

javascript and php

Posted on 2000-04-04
4
225 Views
Last Modified: 2006-11-17
i got function in javascript:
aux2 = insFld(aux1, gFld("Rules", "#"))

i want that the the word "Rules" will
"come" from database(im using php)
is that possible?

elad
0
Comment
Question by:eladr
4 Comments
 
LVL 1

Expert Comment

by:mafweb
ID: 2683792
hi eladr,

this should be possible:

<?php
#get the var $rules from the db
?>

aux2 = insFld(aux1, gFld(<?echo $rules?>, "#"))
0
 

Expert Comment

by:limorm
ID: 2683889
i will try...
0
 
LVL 2

Accepted Solution

by:
maxkir earned 3 total points
ID: 2693230
Small correction to mafweb's comment.
The line should be like that:
aux2 = insFld(aux1, gFld("<?echo $rules?>", "#"))

note "" around the <?echo $rules?>
0
 
LVL 1

Author Comment

by:eladr
ID: 2697400
thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question