This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!