hi.
i have a form, that i want to submit. but i don't wanna use a button or an image-button, but a very normal hyperlink. somethinglike
<input type=submit type=hyperlink value="click link to submit">
anyone knows how to do this??
thx & gr33tz j0sh
<a href="javascript:document.forms[0].submit();">Submit</a>
hrm thanks, but the apache only tells me:
Forbidden You don't have permission to access /Server/phpMyWebmin PRO/java script:document.forms[0].submit(); on this server.
...where's the bug?
try removing the space between "java script"
should be "javascript"
ok, works great now! thx a lot! 🙂
hrm but another problem:
i have many checkboxes where i can select files i wanna do an action with them:
[] file.bmp [] file.txt [] file.jpg ...
then i have a submit-link that sends them to the <form action="...") address to do the action with the selected files. and here's the problem: i wanna do more than only one thing with the selected files! i wanna decide if i wanna delete or zip and download them. so i must have 2 submit-links (delete / zip & download) that work with the same form elements... see the problem? where shall the opened function know WHICH submit-link i pressed? is there a way to send variables through those links???
thx a lot! 🙂
gr33tz j0sh
I would have radio buttons for each file.
1) no action 2) whatever 3) whatever
or you can use submit buttons with different values and use css to make them look like links.
ok the second one sounds good. but how can i do it with css that it looks like a link? 🙂
http://www.w3schools.com/css/default.asp
thx i ll take a look at it! 🙂