I am unable to see the output of a CakePHP generated form in Firefox.
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, as expected.

I have experienced this problem in both Windows XP and Ubuntu 8.10.

My details are:

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

Screenshots:
 - Firefox: http://i34.tinypic.com/vrfoxz.jpg
 - Internet Explorer: http://i36.tinypic.com/2aj17rc.jpg
--~--~---------~--~----~------------~-------~--~----~
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