I had actually isolated the problem, but was then told that I should post the code in its entirety in Seekers of Perl Wisdom instead of Snippets. The fact of the matter is that whenever a user selects "Delete" from the web page, the CGI program does not recognize the "Delete" parameter and removes all reservations from the page instead of just the one selected. I know this is a problem with the display_appointments function in addition to the fact that the key, when pressed, is not recognized. Basically, when its pressed, its a binary value. So as long as its not pressed all the appointments will display. But when you hit delete they all disappear from the web page but not the database because they are all of the same "submit form" instance. How do I go about making separate instances for each appointment and then checking to see which appointment has been chosen based on "delete instance"? I have also tried using an array to store the return value, but the same thing happens. Is there any way to say: if($cur->param("Delete") { # call delete appointments" } so that it checks each instance of delete to see which one was pressed?? The above statement doesn't work because "Delete" can't be set in the "action" part of the form."

In reply to Re^2: Form Post Problems by intranetman
in thread Form Post Problems by intranetman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.