is it possible to use php as a client side scripting language?
if it possible, how can i read values releated with the form?
Anvar.P
0
Newbie Poster
Recommended Answers
Jump to PostThis, sir, is exactly what JavaScript was created for.
Here is an example of how to access a form element with the name "input1":
<html> <body> <form onSubmit="return getFormValue()"> <input type="text" name="input1"/><br/> <input type="submit" value="Submit"/> </form> <script type="text/javascript"> function getFormValue() { var myInput = document.getElementsByName("input1"); if …
Jump to PostI came across this a little while ago. I tried some of the functions and they were fine, although one or two didn't work (probably my fault):
It's basically a set of js functions named after php functions. Interesting.
All 6 Replies
itsjareds
29
Junior Poster
diafol
Tulsa
commented:
nice.....Thanks for share this
+1
Josh Connerty
20
Unverified User
Atli
182
Posting Pro
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
Will Gresham
81
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.