Solved

javascript and php

Posted on 2000-04-04
4
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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 …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

732 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