Zend
ZF-100-500 · Question #62
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 following code snippets will you use to accomplish the task?
The correct answer is D. <?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 following code snippets will you use to accomplish the task?
Options
- A<?php $form->Zend::setAction('/uc/zend.php') ->Zend::setMethod('post');
- B<?php $form->('/uc/zend.php') ->('post');
- C<?php echo "<form action=\"/uc/zend.php \" method=POST>";
- D<?php $form->setAction('/uc/zend.php') ->setMethod('post');
How the community answered
(58 responses)- A12% (7)
- B3% (2)
- C7% (4)
- D78% (45)
Community Discussion
No community discussion yet for this question.