473,320 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

form, textarea from file

PTM
I'm no javascript pro but have to write up a rather large system. Now
I'm stuck with a problem.

I would like to make a webpage where a customer vould edit short pieces
of text, abt 200-300 chr. If only this text were allways from and to the
same file, there would be no problem. I have made many pages with forms.

But now we need to make it so that the name of the file comes as
query_string from a PERL script and the file should go to the textarea
of the form.
I tried a classic

<TEXTAREA NAME="teksti" cols=40 rows=5>
<!--#include virtual="<!--#echo var='QUERY_STRING'-->"-->
</textarea>

This gives an error message
[an error occurred while processing this directive]

Is there any way to read textarea text from a separately named file?
We can rewrite pieces of the PERL code if it helps.
Nov 23 '06 #1
2 1725
ASM
PTM a écrit :
I tried a classic

<TEXTAREA NAME="teksti" cols=40 rows=5>
<!--#include virtual="<!--#echo var='QUERY_STRING'-->"-->
<TEXTAREA NAME="teksti" cols=40 rows=5>
<!--#set var="page" val="$QUERY_STRING" -->
<!--#include virtual="$page" -->
</textarea>

or :

<form>
<TEXTAREA NAME="teksti" cols=40 rows=5>
<!--#include virtual="$QUERY_STRING" -->
</textarea>
</form>
<a href="<!--#echo var="QUERY_STRING" -->">
<!--#echo var="QUERY_STRING" --></a>

Test 2nd example here :
<http://stephane.moriaux.perso.orange.fr/truc/monip.shtml?innerHTML_danger.en.shtml>

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Nov 23 '06 #2
PTM
ASM wrote:
PTM a écrit :
<form>
<TEXTAREA NAME="teksti" cols=40 rows=5>
<!--#include virtual="$QUERY_STRING" -->
</textarea>
</form>
PTM: Exellent ! Thank you !
This saved me many hours of work and it is more tight code than I had
hoped for.
I found domewhere a comment which stated that TEXTAREA can not contain
html code but still this seems to work at least in those browsers I have
tested so far.
Nov 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Herrman | last post by:
Dear programmers, I have a form: <form action=".." method="post"> <textarea name="text1"></textarea> </form> And a php file that saves this variable to a file:
1
by: Avin Patel | last post by:
Hi, I am looking for script to allow multiple files can be uploaded/attached in webform ( mostly cgi/perl or php). But I don't like the multiple input boxes using "<input type="file" size="40"...
3
by: yuelinniao | last post by:
hi, I have got a simple way to make "textarea" support "auto-submit" when pressing Ctrl+Enter, and tested under both IE and Firefox. The common old method is like this: <form name=form2>...
13
by: deko | last post by:
I have a basic feedback form with a submit button. After the "send" button is clicked, I want the user to be redirected to a different page that says "Your message has been sent." How do I do...
2
by: alwaysintune | last post by:
I'm using the McFedries email form, and I can't seem to get an upload form to work. Instead of it saving to my server, I want it to send the information and the picture to my email. Here is the...
1
by: veg_all | last post by:
I dont have access to my php.ini file so I am trying the following which doesn't seem to work: <input type=hidden name=post_max_size value=100000> I know it can be done for file uploads, but...
5
by: Schraalhans Keukenmeester | last post by:
I want to build a very basic online text editor, to allow customers to modify their own sites' html content using a simple form with textarea element. I read the HTML file like so: <?PHP ...
4
by: rn5a | last post by:
I am storing the physical path of images, along with 3 more columns, in a MS-Access DB table. I want to provide users the option to change this physical image path (as well as the records in the...
8
by: ahilar12 | last post by:
Hi experts, I have a form with many textboxes,listboxes in php.I have a edit button to edit the values in the form.once i click the edit button the existing values should be displayed so that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.