**<div>
</div>
<form method='post' action='<?php echo /application/default/controllers/views/certificates.php ?>'>
<input type='text' id='lon' value='<?php echo $user->login?>'/>
<input type='submit' Name='submit' value='Certificate'/>
</form>
</div>
</div>**
The above code makes form in the user page, but the form action gives error like, Not found . So please give some answers to solve this and help me to set form action to a .php file in zend framework. I'm using wamp server to run this.
aMember route all requests via Front Controller (index.php file). It is not possible to access file /application/default/controllers/views/certificates.php from web directly. I suggest to put your file certificates.php outside of aMember folder. Then you will be able to submit form to it.
Other option is implement custom controller that will handle such form submit. You can put code of your controller to site.php file (http://www.amember.com/docs/Site.php_file).
Here is example of code:
Then in form action attribute use this one: