Remove some redundant links
Set default variables
This commit is contained in:
parent
c3dea321b9
commit
de3e8f6809
5 changed files with 12 additions and 4 deletions
12
src/item.php
12
src/item.php
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue