SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cURL empty file field

    Hello !

    I have an internal script that post some data to another internal application via CURL.

    There are about 10 form fields and 5 FILE UPLOAD fields. I have a code like this:
    PHP Code:
            $postData '__VIEWSTATE='.rawurlencode($__VIEWSTATE)
                      .
    '&__EVENTVALIDATION='.rawurlencode($eventval2)
                      .
    '&name='.$name.'&addr='.$addr.'&city='.$city
                      
    .'&imgtext='.$imgtext
    Now, I also want to submit the BLANK/EMPTY file fields (FILE1, FILE2, FILE3) along with the post - else the data is not submitted in the main application.
    Can you please tell me how i can add BLANK/EMPTY file fields ?

    Regards
    ZH

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    What part of the file upload fields are you trying to send? A file input tag generates an entire array of data.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •