?
Solved

write result of passthru to textarea?

Posted on 2012-03-12
1
Medium Priority
?
304 Views
Last Modified: 2012-06-27
I would like to write the output from "passthru" to a text area.

I would like to call the routine from javascript.

It works correctly when written in the form of:
<textarea name='test'> <?php $out=passthru($prog);  ...

It does not work when called from javascript as:
document.form.test.value="<?php  if ( isset($_FILES)  $out=passthru($prog);  ...

How can I fix this?
0
Comment
Question by:pillmill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 2000 total points
ID: 37713969
passthru is server-side, while javascript is client-side
hence you need to make a request from the client to the server to call passthru on demand

probably I did not understand what you want to archive, can you please explain and post the code your want to have in the browser (client-side)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question