Zend
ZF-100-500 · Question #77
You want to set the form method in post and action to /uc/zend.php when you are using the Zend_Form class. Which of the f ollowing code snippets will you use to accomplish the task?
The correct answer is A. <?php $form->setAction('/uc/zend.php')->setMethod('post'). See the full explanation below for the reasoning.
Question
You want to set the form method in post and action to /uc/zend.php when you are using the Zend_Form class. Which of the f ollowing code snippets will you use to accomplish the task?
Options
- A<?php $form->setAction('/uc/zend.php')->setMethod('post');
- B<?php echo "<form action=\"/uc/zend.php \" method=POST>";
- C<?php $form->('/uc/zend.php')->('post');
- D<?php $form->Zend::setAction('/uc/zend.php')->Zend::setMethod('post');
How the community answered
(34 responses)- A74% (25)
- B6% (2)
- C18% (6)
- D3% (1)
Community Discussion
No community discussion yet for this question.