note 48266 added to ref.array

From: Date: Fri, 17 Dec 2004 10:40:20 +0000
Subject: note 48266 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-81898@lists.php.net to get a copy of this message
Hi, I'm trying to make a little script to edit arrays. For example, i have an array file named config.php, and it holds this: <?php $config = array( 'email' => 'E-mail', 'meta_author' => 'Author', ?> I wish to edit this file, through another file, named edit.php, or admin.php, i would like to use forms for it. At the moment i've found out how to show the arrays within a text field, but now i wish to edit them through the same text field. With buttons etc. Here's how i call the arrays from the file: <input name="hiddenfield" type="text" value="<?php print $config[email]; ?>"> <input name="hiddenfield" type="text" value="<?php print $config[meta_author]; ?>"> Is there anything that can let me edit it? I think i will have to edit it through a form, it might be simple, though it might not be, please help me out! ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48266 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48266&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48266&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81898) next »