OZONE Asylum
Forums
DHTML/Javascript
Simple question about document.submit
This page's ID:
28401
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Tearing my hair out here. Being a php'er, what would be the correct syntax for a variable name of a form? I have a page that generates multiple forms, and they're all given an individual name (ex. myform_34) and each one has a button (delete). Whenever "delete" is clicked, a confirmation-box popup and if the user clicks "ok" the form is submitted. I have however been unsuccessful in writing the correct syntax for the script: function confirmErase( id ) { input_box=confirm("Do you really want to delete?"); if (input_box==true) { document.myform_+id+.submit(); } return false; } This aint working. And I know it's where I try to put in the variable in the document.-line. Maybe this approach is wrong and it needs to go into a string first. I've tried most but I'm still crap. All help is welcome. [url=http://www.walemark.se][img]http://www.walemark.se/img/w.gif[/img][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »