Hi everyone,
Hi,

Can I replace "Submit" buttons on forms with a text button?
I need to be able to click on a link:
<a href=index.php?option=edit>Edit</a>

and have it submit the form.  The form only contains one field...does anyone
know how to do this?  I've been searching google for an answer, but couldn't
find any info that really applies to my question.  This isn't exactly a PHP
related question, but php is hugely involved in this project.

Yep, you're right, nothing to do with PHP :/
Anyway, you'll got to use javascript. Make sure you place the link after the </form> tag :


<a href="javascript:document.forms[0].submit()">Submit</a>

Mehdi



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to