*Well, the person uploading it owns the site, so I don't see any room for
malicious behavior, and his login to the back office is also secure. but
thanks for the tip, a lot of people do forget to encrypt. My min problem is
knowing that if I use the function saveData() { function, is it sending the
data enctype="multipart/form-data" or not. And even if I did use _POST, I am
not exactly sure how I would do that. How about this, I know this is asking
a lot, but if I send you the script, can you show me where to do what?  *

On Wed, Nov 5, 2008 at 5:04 PM, Barry Hunter <[EMAIL PROTECTED]>wrote:

>
> Not like that you cant. You need to use a <form> and a POST. (or
> flash, java etc which is even more complicated) handling file uploads
> are far from trivial, you need to take into account many things -
> including security - you dont want just anyone to be upload stuff, and
> you need to make sure you check the file is what you expect - and that
> users dont upload scripts (such as PHP etc). So you need to go though
> the hassle to do it 'right' from the start.
>
> On Wed, Nov 5, 2008 at 10:55 PM, Christopher <[EMAIL PROTECTED]>
> wrote:
> > So, how about this??? Can I just not use the function saveData() {
>  create
> > my own form, without the hassle?
> >
> > On Wed, Nov 5, 2008 at 4:51 PM, Barry Hunter <
> [EMAIL PROTECTED]>
> > wrote:
> >>
> >> Not really maps related, - you have the map working.
> >>
> >> But some excellent info here:
> >> http://php.net/manual/en/features.file-upload.php
> >>
> >> - you need to POST the data, currently you sending it as a query
> >> string - ie a GET.
> >>
> >> On Wed, Nov 5, 2008 at 6:09 PM, [EMAIL PROTECTED]
> >> <[EMAIL PROTECTED]> wrote:
> >> >
> >> >  I am using this Google Map API code:
> >> > http://code.google.com/apis/maps/articles/phpsqlinfo.html (to upload
> >> > to a mysql database) [with minor adjustments]
> >> >
> >> > AND this code:
> >> > http://code.google.com/apis/maps/articles/phpsqlajax.html (for the
> map
> >> > output)
> >> >
> >> > So far, everything works perfect EXCEPT picture uploads. I am not a
> >> > PhP Wizard, but I do know a thing or two. Is there a way to upload
> >> > pictures, using the /phpsqlinfo.html code? I know there are other work
> >> > arounds, but this is for a client and I want everything to be on one
> >> > page, beacuse they are not that computer literate, and need it to be
> >> > simple. The pages that I have already set-up are:
> >> >
> >> > http://www.a-znewhomes.com/phpsqlinfo_add.php
> >> >
> >> > and
> >> >
> >> > http://www.a-znewhomes.com/phpsqlajax_map.htm
> >> >
> >> > It's a real estate agent, and he wants to be able to showcase new
> >> > homes, using a map system, that tell descriptions and adds a picture.
> >> > ALL I NEED is to be able to upload pictures, and (hopefully), a way to
> >> > let them know that while they are uploading (for large files), that
> >> > the picture is still uploading. That would be a bonus, but uploading
> >> > is a must. I have looked and tried groups, with no avail, and I need
> >> > to get this done ASAP! I am already behind on it if you know what I am
> >> > saying. I am just not strong enough of a coder to see what I am
> >> > missing. If you need the code the way I modified it, let me know, I
> >> > can get it to you. If you are busy, can you please pass this on to
> >> > someone (ANYONE) that can maybe help??
> >> >
> >> > Thank You
> >> >
> >> > >
> >> >
> >>
> >>
> >>
> >> --
> >> Barry
> >>
> >> - www.nearby.org.uk - www.geograph.org.uk -
> >>
> >>
> >
> >
> > >
> >
>
>
>
> --
> Barry
>
> - www.nearby.org.uk - www.geograph.org.uk -
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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