/    Sign up×
Community /Pin to ProfileBookmark

Simple CMS: User add and delete entries in one form?

Hi,

I have a very simple CMS that I have been building for a car dealership who needs to be able to update his online inventory.

Here is what I have so far:
[URL=”http://randdtrucks.com/inc/upload/index.php”]http://randdtrucks.com/inc/upload/index.php[/URL]

[B]Part 1: Adding[/B]
When the fields in the form at the top are filled in, upon submission the data is written to an XML file and the photo is uploaded to a directory.
[B]
Part 2: Deleting[/B]

The user also has the ability to select the checkbox to the left of any entry to mark it for deletion. Upon submission the image is removed from the directory and the reference in the XML file is removed.

[B]Part 3: Submission[/B]
When ready, the user clicks the submit button at the bottom of the page.

As you can see there are already 32 entries.

My question is what if my user decides NOT to add an entry but instead only delete an entry? How would I get my program to “ignore” or bypass the input fields at the top of the page?

I can provide the PHP code if it is necessary to clarify my question.

Thank you,
Jon

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @tacophp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...