Solved

write result of passthru to textarea?

Posted on 2012-03-12
1
287 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
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
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 tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now