Jump to content

tmyonline

Members
  • Posts

    206
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

tmyonline's Achievements

Advanced Member

Advanced Member (4/5)

1

Reputation

  1. Guys: I'm implementing a form for user submission. At the end of the form, there is an image that displays some randomly generated code. The user will be required to enter the code shown on this image before he clicks the submit button. This is done to protect the form from spamming, automatic submission. After the submit button is clicked, I need to do this: if ($_POST['the code the user enters'] == the code on the image) { // proceed(); } Any idea on how to get the code displayed on the image ? Thanks.
  2. Hi guys, I would like a capability so that when someone visits these URLs, http://www.domain.com/somedir/xyz.php http://www.domain.com/somedir/info.php they will be respectively re-directed to: http://www.domain.com/somedir/main.php?p=xyz http://www.domain.com/somedir/main.php?p=info Any idea on how to do it in Apache or PHP ? Thanks.
  3. Thanks Pikachu2000 for bringing back my memory. How can I forget trim() ?
  4. Guys: What is the way to remove white spaces in front of a form entry ? Should I use regular expression for this ? Thanks.
  5. Guys: I'm wondering if there is any PHP module and/or framework that I can use for GUI development. Thanks.
  6. Thanks Ken. Would you be a little more comprehensive. What is IMHO and what is modal window ? I did use a little of JQuery in the past but not too much. Thanks again. Hope to hear/receive suggestions from other developers as well. Thanks a lot.
  7. Guys: I would like to create a functionality so that when I click on a link, it will launch and display a form on top of the existing page instead of navigating away to a new page. This form should be displayed at the center of the screen with a certain width and height. How do I achieve this ? I'm not clear whether this is a PHP or JavaScript question. Hope to hear from you. Thanks a lot.
  8. Hello, my Apache was running fine. However, since the time I installed Python and Django, my Apache is no longer running for some reason. In the XAMPP Control Panel, I clicked "Start" on Apache, it said: Status check OK Busy... Apache started but when I went to: http://localhost/myWorkFolder, it showed an empty white screen. Same as I went to http://localhost I looked at the error log at C:/xampp/apache/logs/error.log and found that File does not exist: C:/xampp/htdocs/favicon.ico The file "favicon.ico" is not in the htdocs directory. I don't recall if I mistakenly deleted this file when I cleaned up the htdocs directory. And, I'm not sure if this is the reason why Apache is not running. Any idea ? Thanks so much.
  9. Guys: I need to create an event log. This log is an editor that allows people to type in messages. What I want is that when a user clicks on the event log button, it will not navigate the page away. Instead, it will pop up a mini editor or textarea that allows him to type in a message and submit. This mini editor should be positioned in the middle on the screen. Any idea ? Thanks.
  10. OK kratsg, I'm going to try it first thing in the morning when I'm at work. It does look like a very handy solution, clean and short. If it works, I cannot thank enough!
  11. kratsg, I think this code will fail! I like your idea in attaching the question to the onclick attribute but, think about it, no matter you click "OK" or "Cancel" in response to the question, it will go ahead and do the deletion.
  12. OK, so how do I re-direct the URL then ? I tried window.location.href = "index.php?action=delete&id=" + recordID but it failed to re-direct! Thanks.
  13. kratsg, you are coming down the path that I went through! The thing is, if I do: function deleteInfo(recordID) { var response = confirm("Are you sure you want to delete this record?"); if (response) window.location.href = "index.php?action=delete&id=" + recordID; } It will NOT re-direct the url. I tried it many times this morning. This is what I experienced, if you make the line window.location.href = ... the very first line inside the deleteInfo(), yes, it will re-direct the url. But, the fact that this line is nested inside the if statement, it somehow fails to re-direct. Try it for yourself. That's why I've been so frustrated!
  14. Is it true ? Assuming that it is, is there not a non-Ajax approach as an alternative solution for this ?
×
×
  • 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.