Solved

javascript and php

Posted on 2000-04-04
4
220 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
Comment Utility
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
Comment Utility
i will try...
0
 
LVL 2

Accepted Solution

by:
maxkir earned 3 total points
Comment Utility
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
Comment Utility
thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
This article discusses four methods for overlaying images in a container on a web page
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now