ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Weird error in textarea under Safari

August 19, 2008 10:23am

Subscribe [0]
  • #1 / Aug 19, 2008 10:23am

    csavannah

    27 posts

    I’ve made an SAEF form, but I’m getting a weird error in one of the text areas where users add content.

    the error is this:


    Notice:  Undefined index:  tag_f in /www/eh6226/public_html/pfsys/core/core.functions.php(637) : eval()‘d code on line 186

    the raw EE code is this:

    <textarea id="tag_f" name="tag_f" cols="75" rows="2">
    <?php
    
    echo $_POST['tag_f'];
    
    ?>
    </textarea>

    Again, this only happens in Safari, Opera, IE and Firefox are fine. Any ideas?

  • #2 / Aug 19, 2008 10:27am

    Robin Sowell

    13255 posts

    Basically- $_POST[‘tag_f’] isn’t defined.  Are you using this to… edit as well?  If not- remove the php.  Otherwise- I tend to grab my post variables at the start- check if they’re set, if not, define as blank.

    Basically:

    $tag_f = (isset($_POST['tag_f'])) ? $_POST['tag_f'] : '';
    echo $tag_f;

    Make sense?  And since it’s not an issue with the core code, if we need to poke it much, may shift over to ‘How to’.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases