WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : How to use Variable Variables (dinamic variable names) with Java Script
Categories : Java Script, Variables
Boaz Yahav
Date : Jan 03rd 1999
Grade : 5 of 5 (graded 1 times)
Viewed : 8038
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

To do this with javascript you can use the eval function. if for example you
want
to create new URL based on a few variables named :

attr_value1
attr_value2
.
.
attr_value5


you would do something like :

function vars(f) {
for(i=1 ; i < 5 ; i++)
location.search=location.search + '&attr_value' + i + '=''' + eval
("f.attr_value" + i + ".value") + ''';

}




How to display a PHP variable value from a selectbox without reloading the page by merging PHP and Javascript variables.
Categories : PHP, Java Script, Variables
javascript doesn't accept a fieldname with []
Categories : Java Script
The following snippet gives complete info about all submitted HTTP_POST_VARS and HTTP_GET_VARS
Categories : Variables, HTTP, PHP
clearing variables in php3
Categories : Variables, Arrays, PHP
PHP4 session helper HTML file.
Categories : PHP, Java Script, HTML and PHP, Sessions
Install Flash player plug-in
Categories : Flash, Java Script
Dynamic Calender in PHP, Javascript and HTML.
Categories : PHP, Java Script, HTML and PHP, Calendar
Clock at Status Bar
Categories : Java Script, HTML, Date Time
Select a value for your form from a list in a separate window.
Categories : User Interface, Java Script
Building dynamic menus with PHP & MySQL (ADO), JavaScript and CSS
Categories : PHP, Databases, MySQL, Java Script, User Interface
Javascript URL and Email Validation
Categories : Java Script, Data Validation, Form Processing, Email, URLs
Dump the contents of a PHP variable in html format with a recursive list of subfolders and files from a given root directory.
Categories : PHP, Directories, Variables, Arrays
translate.php - Assocciative array example, passing a reference to a function.
Categories : PHP, Arrays, Languages, Variables
Simple Javascript CSS Digital Clock
Categories : Java Script, Date Time, CSS, Beginner Guides, Web Design
Unobtrusive javascript for maintaining scrollable layer state
Categories : DHTML, Java Script, HTML