The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Perl Programming
|
altering the STDIN
Discuss altering the STDIN in the Perl Programming forum on Dev Shed. altering the STDIN Perl Programming forum discussing coding in Perl, utilizing Perl modules, and other Perl-related topics. Perl, the Practical Extraction and Reporting Language, is the choice for many for parsing textual information.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 14th, 2000, 06:49 PM
|
|
Contributing User
|
|
Join Date: Mar 2000
Location: USA
Posts: 67
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
when submitting a form via the POST method, iknow that data is being written to the STDIN input stream handle. how would i add or subtract from this ?
thansk in advance for reading this.
-bydavid
|

June 15th, 2000, 05:54 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>how would i add or subtract from this ?
What do you mean? Or can you specify exactly what are you trying to do?
|

June 16th, 2000, 01:48 AM
|
|
Junior Member
|
|
Join Date: Jun 2000
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|

June 16th, 2000, 05:42 PM
|
|
Contributing User
|
|
Join Date: Mar 2000
Location: USA
Posts: 67
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
i am trying to call a perl file in a frame with certain parameters. such as this "myFile.pl?text=off&sound=on" BUT, i do not want the ?text=off&sound=on part to show up. so i am trying to add the
?text=off&sound=on to the STDIN
|

June 17th, 2000, 01:11 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Make a form button and put them in hidden field:
<form method="POST" action="script.pl">
<input type="hidden" name="text" value="off">
<input type="hidden" name="sound" value="on">
<input type="submit" value="Please Click Here">
|

June 18th, 2000, 04:37 PM
|
|
Contributing User
|
|
Join Date: Mar 2000
Location: USA
Posts: 67
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
okay, i can do that, but htat means that someone has to click the submit button for the script to load.
if i wanted to load without being clicked on, how would i do it? for instance if i wanted to load this perl script into a frame.....
thanks
|

June 18th, 2000, 05:16 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>if i wanted to load this perl script into a frame
<form method="POST" action="script.pl" target="frame_name_here">
>>if i wanted to load without being clicked on
Use GET method and put ?text=off&sound=on into the script so they are not visible. I don't see text=off and sound=on as sensitive data or anything secret, why you wanted to hide it?
Anyway, if you don't like hidden fields, you should stick with GET method.
Or use javascript to load it which isn't the right approach.
|

June 22nd, 2000, 02:44 AM
|
|
Junior Member
|
|
Join Date: Jun 2000
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
<<if I wanted to load without being clicked on, how would I do it?>>
<META HTTP-EQUIV="REFRESH" CONTENT="40; URL=http:/scriptname">
- it means that http:/scriptname will be load after 40 seconds of action absence on a current page.
Additionally, if you don't POST parameters into the new script you can use inside default values.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|