This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes PHP and the fly likes In the php ajax what to use to get the image(above is correct)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "In the php ajax what to use to get the image(above is correct)?" Watch "In the php ajax what to use to get the image(above is correct)?" New topic
Author

In the php ajax what to use to get the image(above is correct)?

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403

suppose this(id:'file' file text field) submitted with SUBMIT Button to a PHP handler, I can by otherwise use a button in the same form (must be submit button?), for an ajax call to preview image, prior upload to php? In the php ajax what to use to get the image(above is correct)?
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I mean the ONLY way get:
$original_image = $_FILES['file']['tmp_name'];
is with webform submitted or... I can otherwise also with ajax button - not main submit - (prior submit with Submit button) to preview and after use Submit button?

ajax button (process with ajax same page) must be submit type button to get $original_image?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: In the php ajax what to use to get the image(above is correct)?