When I make a form with CakePHP it does not render in Firefox, almost
as if it were hidden with CSS.  I have removed all stylesheets to
ensure that this was not the problem.

Here is the PHP code:

<?php
echo $form->create('Article');
echo $form->input('title');
echo $form->input('body', array('rows' => '3'));
echo $form->end('Save Post');
?>

Here is the HTMl it produces:

<form id="ArticleAddForm" method="post" action="/cake/articles/add">

  <fieldset style="display:none;">
    <input type="hidden" name="_method" value="POST" />
  </fieldset>

  <div class="input text">
    <label for="ArticleTitle">Title</label>
    <input name="data[Article][title]" type="text" maxlength="255"
value="" id="ArticleTitle" />
  </div>

  <div class="input textarea">
    <label for="ArticleBody">Body</label>
    <textarea name="data[Article][body]" cols="30" rows="3"
id="ArticleBody" ></textarea>
  </div>

  <div class="submit">
    <input type="submit" value="Save Post" />
  </div>

</form>

If I save the HTML output to a local HTML file and open it in Firefox,
I am able to see the form.  If I display this form dynamically with
Cake via localhost/articles/add the only thing I see on the page is
the H1 tag and the CakePHP debug output.

If I browse to localhost/articles/add in Internet Explorer, it renders
the form just fine.

Has anyone had this problem or know a fix?

My details are:

Windows XP SP3
Apache 2
MySQL 5.0.67
PHP 5.2.6
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/
2008092417 Firefox/3.0.3

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to