Remove some redundant links

Set default variables
This commit is contained in:
Michael Erdely 2024-10-10 00:51:22 -04:00
parent c3dea321b9
commit de3e8f6809
5 changed files with 12 additions and 4 deletions

View file

@ -27,6 +27,18 @@ else {
$userid = $_SESSION["userid"];
}
# set default variables
$name = "";
$description = "";
$price = 0.00;
$source = "";
$url = "";
$category = 1;
$ranking = 3;
$comment = "";
$quantity = 1;
$image_filename = "";
// for security, let's make sure that if an itemid was passed in, it belongs
// to $userid. all operations on this page should only be performed by
// the item's owner.

View file

@ -94,7 +94,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{/foreach}
</tbody>
</table>
<h5><a href="categories.php#catform">Add a new category</a></h5>
</div>
</div>
</div>

View file

@ -93,7 +93,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{/foreach}
</tbody>
</table>
<h5><a href="families.php">Add a new family</a></h5>
</div>
</div>
</div>

View file

@ -94,7 +94,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{/foreach}
</tbody>
</table>
<h5><a href="ranks.php#rankform">Add a new rank</a></h5>
</div>
</div>
</div>

View file

@ -120,7 +120,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
{/foreach}
</tbody>
</table>
<h5><a href="users.php">Add a new user</a></h5>
</div>
</div>
</div>