|
|
|
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 | |
|
|
|