www.webdeveloper.com

Search:

Type: Posts; User: carygh

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,005

    Disable submit button if Cookies not enable

    Is there a way I can disable the submit button with javascript if cookies are not enable? I am passing some information with session to a form and if cookies are disabled the data will not pass to...
  2. Validate if uploaded file is png or jpg with php

    I am using the below script to validate if uploaded files are image for a multiple upload form. Everything works but I want to further validate that the uploaded files are png or jpg only. How do I...
  3. Thx for the help. I change to use if method...

    Thx for the help. I change to use if method since I only have 1 type of file for this script and don't need to use he switch method.
  4. Phpmailer Sending Multiple Email at the Same Time

    How do I use phpmailer to send emails like the email function where I can send email to multiple email address at the same time. e.i. one email goes to the sender, one goes to the receiver and one...
  5. That didn't work. It just take me strict to the...

    That didn't work. It just take me strict to the thankyou page instead of showing the error message.
  6. [RESOLVED] Check Uploaded file is pdf with fileinfo

    Hi, I am using the below script to check if the uploaded file is pdf and send it with phpmailer to my email address. Everything works great. It validates and if not pdf it will show the 'PDF file...
  7. Replies
    6
    Views
    2,371

    Hi chriseccles, I tried your script and it...

    Hi chriseccles,

    I tried your script and it gives me error message of not the allowed extension type doesn't matter what file type I attached to it. I have made the $allowtype to an array...
  8. Replies
    6
    Views
    2,371

    Can you please provide a sample code? I am new...

    Can you please provide a sample code? I am new to php and do not know how to use this. thx.
  9. Replies
    6
    Views
    2,371

    getimagesize for multipe image upload

    Hi I wanted to validate if the uploaded file is images by using the below script. However, I get a warning message saying that it required string and an array is given. How do I modify the script...
  10. Replies
    1
    Views
    1,027

    Strip_tags Error Message

    Hi, I am trying to sanitize my form input with strip_tags but getting the below message. I am not sure what is wrong with it. Please help. thx.

    Warning: strip_tags() expects parameter 1 to be...
  11. I have accidently missed part of the script. ...

    I have accidently missed part of the script. Below is the whole script. thx.


    var datePickerDivID = "datepicker";
    var iFrameDivID = "datepickeriframe";
    var dayArrayShort = new Array('S', 'M',...
  12. How to disable past date in Javascript Datepicker?

    How do I make the below JS datepicker to disable past date? Everythnkg works fine except I want to have only future date selectable. Thanks.



    function refreshDatePicker(dateFieldName, year,...
  13. Replies
    2
    Views
    2,279

    Thanks nogdog, ob_start() helps the first problem.

    Thanks nogdog, ob_start() helps the first problem.
  14. Replies
    0
    Views
    1,431

    Set Phpmailer body with post data

    how do I set the body message with some posted data with phpmailer? I know how to do this in mail() function but not phpmailer. What I need is the body to have something like this.

    This message...
  15. Replies
    3
    Views
    3,811

    Thanks NogDog. Can you please provide an example...

    Thanks NogDog. Can you please provide an example of how to use getimagesize() function? Also, do I just use the $mail->AddAttachment, is that mean I don't need to do the coding I have posted? ...
  16. Replies
    3
    Views
    3,811

    [RESOLVED] PHPMailer with Multiple Attachment

    I am trying to create a webform that has 4 upload field. I want to have the uploaded file email to me with phpmailer. I need to know how to validate that the uploaded files are images, attached via...
  17. Replies
    0
    Views
    1,298

    [RESOLVED] Swiftmailer Error Message

    I am using the below script to validate and send attachment with swiftmailer.


    <?php

    session_start();

    /* check_input code to validate some field */

    /* some regex to validate email,...
  18. Upload and Validate files with $_FILES array then send with swiftmailer

    I want to create a form to allow visitors upload files and send the uploaded files to me with swiftmailer. I am trying to accomplish this with the below code but don't know how to put it in...
Results 1 to 18 of 18
HTML5 Development Center



Recent Articles