Jump to content

PHP5000

Members
  • Posts

    31
  • Joined

  • Last visited

About PHP5000

  • Birthday 01/01/2023

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

PHP5000's Achievements

Member

Member (2/5)

0

Reputation

  1. 1. the fact that you removed my post and added a long and dull answer to a comment that you did not have th eballs to face proves you are full of sh.. 2. d umb a ss, just because somebody wants to see an example of a functioning code it does not mean he wants to copy and paste it you num bskull. Old windbags like you may make replies and say things that are wrong or not working. A working example proves that the answer is not waste of time. This is the last time I am wasting time in this idiotic gathering of knowitall windbags so save your answer for your fat as s you insufferable bore.
  2. Frankly this site has broken the record of both these sites for useless and vague answers. In your last reply to another question you even had the nerve to say I do not have sense. For your information, just not agreeing with you and your way of doing things does not make a person "Not have sense". As you see in this useless reply your answers are incomplete. My question clearly says "FUNCTIONAL EXAMPLE". And what is this with MODERN way? If you are trying to answer a question stop being vague. If I needed such pretentious full of oneself answers I would listen to jordan peterson. And it seems like there are 3 people on this site to answer. How do I delete this useless account?
  3. Hello I want to show an alert or confirmation when somebody click on "delete" button. There are many examples on line and I have read at least 10 posts on some exchange website which sadly has never worked for me (those of you who are old users of internet probably remember a stupid website called expertvillage. This expertexchange sites must be related). The code is pretty straight forward and it actually generate a confirm alert but no matter which option the viewer clicks it goes ahead and deletes (send the viewer to a page that deletes). Just as if there was no confirmation alert at all. I do not know JS and frankly never liked it, but I think it not working has more to do than just me not liking the language. Here is a code, any idea or suggestions is highly appreciated: <form action=deletetest.php method=POST> <input type=submit value=\"Delete records\" onclick=\"ConfirmDelete()\"> </form> <script> function ConfirmDelete() { return confirm("Are you sure you want to delete?"); } </script>
  4. Many thanks to both of you. It worked like a charm.
  5. Brand this would only work if I had a column saving the dates (date_created), which I do not. Also supposing I wanted to delete the records. Any idea how to adopt this notion to DELETE, specially without date ? Thanks in advance
  6. Hi Any idea what is SQL command to select the oldest 20 records in a Mysql table? I know it can be done with reading the number of records and recording the oldest id and newest id and setting a range, but I am trying to find a more efficient and quicker way to do this. (In a single SQL command). Thanks in advance
  7. Hi I have a simple form which contain a drop down menu for quantity. After quantity is selected a script does a cost calculation and value is shown. However the user should not be able to proceed without selecting quantity. I am getting all sorts of illogical outcomes after each change or correction I make. Initially the validation would just ignore the Quantity and check the second item. Then after some changes to the code, now it keeps asking for Quantity even after the user has selected from the list. Here is the code, do you see any errors? Thanks in advance. print "<script> function validateForm() { let xss = document.forms[\"frmCustomize\"][\"SQty\"].value; if (xss == \"0\") { alert(\"Please select quantity\"); return false; } var fffnnn = document.forms[\"frmCustomize\"][\"CCnumber\"].value; if (fffnnn == null || fffnnn == \"\") { alert(\"Please enter your card number.\"); return false; } </script>"; the form : print "<form action=M1.php method=POST id=C4 onsubmit=\"return validateForm()\" name=frmCustomize>"; // **************** QUANTITY ******************* print "<tr><td valign=top><b>Quantity:</td> <td valign=top> <select name=SQty id=SQty onchange=\"CalculateTotal()\"> <option value=0>Please select quantity</option> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> <option value=4>4</option> <option value=5>5</option></select></td></tr>";
  8. Getting to the support people seem to be the bigger problem. I finally solved the problem with a lot of trial and errors.
  9. Hello everybody I had posted a question about problems I had with setting session variables and received some answers which although did not solve the problem they were educational and useful. Session variables worked sometimes and did not work some other times without any changes to the code. Two days ago I changed the hosting company and moved all my files without any changes from the old host to the new one (IONIS). Now no session work at all! No log in, no shopping cart, no counter, nothing! The code is exactly as what it was before. So it must be the server. I am sure their tech support is going to know about PHP problem so I am asking here. What could be different from this server to the old one that stops all sessions and session variables? Thanks in advance
  10. Thanks Barand
  11. Hi Thanks for the replies. The printer is a small label printer assigned as default printer to the computer the viewer will use to see the page. Alternatively it could be put on the network with an IP. Pill the thread you linked shows how to generate a separate document, which could be done for each shipping label and then printing the label. I was trying to avoid having to go two steps for the users, which I guess you mean it is not possible with php. I will read more on print related commands of PHP and JS, meanwhile if you guys can think of a solution let me know. Thanks.
  12. Hello everybody. What I am trying to do is add a button on a web page that clicking on it will send 3 lines of text (an address) directly to an assigned printer that prints labels. I recall from old days of using VB this was an easy task with that language. However I can not find any information about PHP or JS to do the same thing. Any ideas or examples would be highly appreciated.
  13. Since I can not get each of you lovely people a beer let me share with you this:
  14. jodunno thanks for your reply and being persistent in solving the problem. I corrected the redirect problem by removing all outputs and spaces. That solved one problem very well. The problem of sessions getting terminated by themselves still exist. (So redirect was not the cause of it.) I tested my pages at 9:15 this morning and everything was ok. At 9:20 I repeated the exact same tests with the same data and session does not work. In all years of my programming I have never seen such a thing. I am stating to think some crazy person in the hosting company is screwing with my code. I did not change anything from 9:15 to 9:20 so why is it not working now! Could disconnection from internet kill the sessions? A momentary disconnection is the only thing I can think of, although technically it shouldn't. Not only the session in progress is no longer working, I can not even create a new one while I can see Internet connection is working. So to summarize: what could prevent setting a new session if nothing is changed in code, browser, OS, username and password or anything else?
  15. 10000 Dank, lieber Freund. Ihre Hilfe ist von unschätzbarem Wert. Ich habe ein paar Probleme gelöst, nachdem ich Ihren Code gesehen hatte. Außerdem wird die Sitzung anscheinend beendet, wenn auf eine URL umgeleitet wird, die mit http:// beginnt. Nochmals vielen Dank.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.