Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
we dont post here for help because we dont know, we know but we ask for other solution other than you used, like a plan b

You might want to rephrase that. Your original post starts with "am having a problem". Indeed, you seem to have to climb a few steps of knowledge before you understand what your script is doing.

I am pretty sure that your script deletes a single user on each button click, so in contrast to your claim you can delete single users. Just compare the content of your database before and after the script ran. Your proposed fix doesn't change that, but doesn't make it worse either, and in any way sending $ENV{SCRIPT_NAME} to the browser has no effect on whether values are stored in a database on the server side.

If you want to make progress, examine the source of the HTML page which your script writes. Then make careful observations which user gets deleted after a click, and then read the documentation of the param method in CGI.

the thing was values run away after page reload,

Which values? Where would you expect them to sit? If you reload a page which came as a response to a POST request, your browser warns you that it needs to resend form data ... and yes, after each such reload, one more user is gone.


In reply to Re^3: delete single user by haj
in thread delete single user by bigup401

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-25 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found