so i should use it like this,

    var url = "add_catch.php";
    var query  = "sid=" + sid + "&date=" + date + "&time=" + time +
"&weight=" + weight + "&specie=" + specie + "&bait=" + bait + "&temp="
+ temp + "&wtemp=" + wtemp + "&img=" + img;
    GDownloadUrl(url, function (data, responseCode) {
        if (responseCode == 200 && data.length <= 1) {
            document.getElementById("message").innerHTML = "<div
style='padding: 8px 10px 8px 12px;background-color:#A6EF7B;border:1px
solid #76C83F;'>Vangst opgeslagen</div>";
        }
        else {
            document.getElementById("message").innerHTML = "<div
style='padding: 8px 10px 8px 12px;background-color:#EF9398;border: 1px
solid #DC5757;'><b>Fout:</b> " + data + "</div>";
        };
    },query,"application/x-www-form-urlencoded");

On Sep 2, 1:44 pm, Black Fog <[email protected]> wrote:
> using post instead of get is mandatory, cause get can't hold the
> amount of data you need for image upload.
>
> On 2 Sep., 13:41, Marcelo <[email protected]> wrote:
>
> > On Sep 2, 1:19 pm, Mike Borkus <[email protected]> wrote:
>
> > > hope anyone can have a look at it and help me out.
>
> > Did you see my previous post?
> > You're using HHTP GET. You need to use HTTP 
> > POST.http://code.google.com/apis/maps/documentation/reference.html#GDownlo...
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > > regards Mike
>
> > > On Sep 1, 8:43 am, Mike Borkus <[email protected]> wrote:
>
> > > > Still having server problems. trying to get it back up asap
>
> > > > On Sep 1, 8:38 am, Mike <[email protected]> wrote:
>
> > > > > Site is back up again, had some connection problems.
>
> > > > > hope anybody can have a look in to it.
>
> > > > > cheers Mike
>
> > > > > On Aug 31, 2:45 pm, Fernando Torres <[email protected]> wrote:
>
> > > > > > I can't connect to your site, the connection can't be established.
>
> > > > > > Your form has the enctype attribute set to "multipart/form-data" ? 
> > > > > > And your
> > > > > > <input /> need a name attribute too.
>
> > > > > > On Mon, Aug 31, 2009 at 9:20 AM, Mike <[email protected]> wrote:
>
> > > > > > > Hi,
>
> > > > > > > I'm trying to upload an image using the <input type='file' 
> > > > > > > id='img'/>
> > > > > > > field but when i send the form using GDownloadUrl only the 
> > > > > > > filename is
> > > > > > > properly passed trough and not the complete file path so the php 
> > > > > > > scipt
> > > > > > > is not able to upload the file.
>
> > > > > > > here is the page and the form i'm using
> > > > > > >http://borkus.kicks-ass.org/vr_script/add_cathes.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to