Zend
ZF-100-500 · Question #103
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 C. <?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 echo "<form action=\"/uc/zend.php \" method=POST>";
- B<?php $form->Zend::setAction('/uc/zend.php') ->Zend::setMethod('post');
- C<?php $form->setAction('/uc/zend.php') ->setMethod('post');
- D<?php $form->('/uc/zend.php') ->('post');
How the community answered
(20 responses)- A15% (3)
- B10% (2)
- C70% (14)
- D5% (1)
Community Discussion
No community discussion yet for this question.