Search results

  1. D

    onclick text select and also a comment script if possable

    You can not use two functions with the same name. The code below should work fine for you. <html><head><title>(Type a title for your page here)</title> <script type="text/javascript"> function select_all() { var text_val=eval("document.form1.type"); text_val.focus()...
  2. D

    Deleting A directory

    I have been working on a software package. All the install files are in a folder called install. When the installation is finished they are forwarded to a file called delete_install.php which is in the install folder. I have been trying to figure out how to delete the install folder and all...
  3. D

    php form

    I just thought i would add my two cents. I personally use javascript to verify the contents of the form before submission is sent. Example function checkForm(frm){ msg = ""; if(!frm.Name.value){ msg += "- Please fill in your full name\n"; } if(!frm.Email.value){ msg +=...
  4. D

    php Date()

    I think i need to supply some ore information on what I am doing. time1 comes from a database entry such as $con['time'] the format is: $time1 = 2009-04-27 09:18:10; I do not want to use session variables. I am looking to do it in normal php variables. Edit: This is what my solution was...
  5. D

    php Date()

    I am trying to compare the difference between two times. $time1 = 2009-04-27 09:18:10; $time2 = 2009-04-27 11:18:10; I am using this code to restrict use to one time per hour. If anyone can help out i would highly appreciated.
  6. D

    Can you have your own 404 page?

    This is fairly simple. Add the following line to your .htaccess file ErrorDocument 404 /404.html Next simply create a file named 404.html
  7. D

    Verify Delete JS function

    Thanks for the info. I'm not worried about the security on this because it is under password protection and on an internal network server, but thanks for your concern.
  8. D

    Verify Delete JS function

    I am using the following JS to verify whether they wish to delete or not. For some reason when i click the delete button and click ok it does not delete the entry, but if i click it a second time it does delete it. Anyone have any suggestions to how i can solve this issue? function...
  9. D

    file_get_contents()

    I still receive the following errors on the screen that i was hoping to remove with the error code. I did what you showed and it does display Unable to check updates at this time but does not remove theses errors Warning: file_get_contents() [function.file-get-contents]...
  10. D

    file_get_contents()

    I am using file_get_contents('http://www.site.com'); to connect to another one of my sites to retrieve information. If for some reason my site is down i need it to prompt the script. Example $info = file_get_contents('http://www.site.com/updates/index.php'); If there is no error echo $info...
  11. D

    Edit a file with a form

    I have a file that i wish to edit using a form. I only want to load and edit a specific portion of the page. If anyone can help with this I thank you ahead of time. This is what the code looks like coding here <!--Load from here--> This is the editable portion of the page i wish to load...
  12. D

    If not exist

    I have been trying to get the following code to work but for some reason it keeps throwing an error. Any assistance is appreciated. mysql_query("IF NOT EXIST (SELECT * FROM station WHERE name='$name' AND address='$address' AND city='$city') THEN INSERT INTO station (name, address, city, state...
  13. D

    Screen Scrape Help

    I am new to working with this type of code any assistance is greatly appreciated. Below is the code that I am trying to get working. I am stuck on the portion where I add the data to the database. //Connect to page and retreive content $url = "http://www.site.com"; $raw =...
  14. D

    Paypal IPN

    I have a paid account with upgraded php you are saying I cannot use $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); I am guessing you guys have not used Paypal IPN because this is the way paypal wants you to connect.
  15. D

    Paypal IPN

    I found the following code that i love using but i want to add in some coding. I need to verify the product name, price, and id if anyone can help I would greatly appreciate it. I am going to create a seperate file for each product. <?php...
  16. D

    Encryption

    I need to encrypt the form inputs but i need to be able to access the values of the inputs with JS if anyone can think of a way i can do this I am offering 500 credits for the assistance
  17. D

    Encryption

    I am new to encryption and I am creating a program that works with paypal buttons. How secure is an encryption like this <script> //<!--...
  18. D

    Edit .php page with a form

    I think everyone missed what i was getting at so ill show you what I found. This code opens my config.php file collects the variables, displays them in the form. When the form is submitted it writes the new values in. It took me 4 hours to find someone to help on this subject so share this...
  19. D

    Edit .php page with a form

    I don't think you understood what I meant. Im guessing you thought i just needed to pass variables between pages with post but that is not the case. config.php is a page filled with variables that are called by many different pages. Options.php is a page in a admin panel where they can...
  20. D

    Edit .php page with a form

    I am trying to create an options form that will change php variable within a configuration file. If anyone knows how to do this it would be great help. Config.php looks like this //language $language = 'EN'; //Currency $currency = 'USD' //Page Title $title = "Welcome - Home Page"...
Top