Sponsored Content
Top Forums Shell Programming and Scripting include virtual perl-script - submit button opens a new page.. Post 302446320 by tip78 on Wednesday 18th of August 2010 09:23:15 AM
Old 08-18-2010
include virtual perl-script - submit button opens a new page..

hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not

doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number is inside file "filename") + 2 buttons: + and -
when pressing a button it opens a file and changing value to +1 or -1 and instantly showing this number

the form itself:
<form method=post>
<input type=submit name=\"filename\" value=yes class=yes>
<div class=\"votes\">$curscore</div>
<input type=submit name=\"filename\" value=no class=no>
</form>

so, if I'm executing the script in a browser and not through "include virtual" then it works pretty fine just like intended but if through include virtual then when pressing any of submit buttons the page is reloading but file keeps untouched..

I've tryed to put 'action="/cgi-bin/script.cgi"' inside form, but then when pressing submit it will change to a new window just like if I would execute script inside browser itself

so what is the right way to insert script inside shtml so it will works fine just like inside browser?

P.S. btw if I use 'exec cgi' then it works but without ?filename
with ?filename it shows error: invalid CGI ref..
tip78
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl and refresh button, save twice?

Hi guys, I am writing a simple script save_me.cgi that can save the data in form.html into a txt (data.txt)file. But when user click "refresh" button one the browser on page save_me.cgi, the data will be save again in the data.txt. could someone help me on this issue? a studpid way... (3 Replies)
Discussion started by: gusla
3 Replies

2. UNIX for Dummies Questions & Answers

Script for using the Back button and the Close button

Here's a question I have for anyone that might be able to help me: I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a... (1 Reply)
Discussion started by: mdgibson
1 Replies

3. UNIX for Dummies Questions & Answers

Include PERL script with in the unix shell script

Hi Gurus, Is it possible to include perl script with in the unix shell script? What would be the general syntax? In the above case, is it required to write the below first two lines of codes? #!usr/bin/sh -x #!usr/bin/perl -w Thanks in advance / Mysore Ganapati. (1 Reply)
Discussion started by: ganapati
1 Replies

4. Shell Programming and Scripting

Perl script to copy contents of a web page

Hi All, Sorry to ask this question and i am not sure whether it is possible. please reply to my question. Thanks in advance. I need a perl script ( or any linux compatible scripts ) to copy the graphical contents of the webpage to a word pad. Say for example, i have a documentation site... (10 Replies)
Discussion started by: anand.linux1984
10 Replies

5. Web Development

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (3 Replies)
Discussion started by: tip78
3 Replies

6. Shell Programming and Scripting

Perl - radio button processing

Hi, I am hoping to get some help on perl. I am trying to process a HTML radio button selected value in perl. Basically What I am trying to do is 1. I have some radio buttons which indicated different colors. 2. I have a list box where I want to populate depending on the selected radio button... (1 Reply)
Discussion started by: devtakh
1 Replies

7. Shell Programming and Scripting

Validation of Text field while Click on submit button

I am using Perl CGI. I have created some text fields and getting those values. But i want if user leave the text field blank when he click on submit button then instead of run a script it should give a popup. Please any body suggest me something..??? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies

8. Shell Programming and Scripting

[SOLVED] Submit Button is not Recognizable

Hi ... I am writing a PERL CGI script where firstly i display a Submit button and when i click that, it will display a group of checkbox values and another submit button. My question is Now, if i click the second submit button, it should get the checkbox values and work with those(do some... (0 Replies)
Discussion started by: gkrish
0 Replies

9. Shell Programming and Scripting

Curl to hit the submit button

Hello, I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code <input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/> <input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies

10. Web Development

Apache2 web application- Submit button - write data into a file

Hello, I am newbie on php-mysql and just know only installation. I have an apache2+php5+mysql installed VPS. What I would like to do is that when visitor enters requested data shown in index.html, submit button will run a script to save each field into a file. Here is an example shown in... (1 Reply)
Discussion started by: baris35
1 Replies
BB-ACK.CGI(1)						      General Commands Manual						     BB-ACK.CGI(1)

NAME
bb-ack.cgi - Xymon CGI script to acknowledge alerts SYNOPSIS
bb-ack.cgi?ACTION=action&NUMBER=acknum&DELAY=validity&MESSAGE=text DESCRIPTION
bb-ack.cgi is invoked as a CGI script via the bb-ack.sh CGI wrapper. bb-ack.cgi is passed a QUERY_STRING environment variable with the ACTION, NUMBER, DELAY and MESSAGE parameters. PARAMETERS
ACTION is the action to perform. The only supported action is "Ack" to acknowledge an alert. NUMBER is the number identifying the host/service to be acknowledged. It is included in all alert-messages sent out by Xymon. DELAY is the time (in minutes) that the acknowledge is valid. MESSAGE is an optional text which will be shown on the status page while the acknowledgment is active. You can use it to e.g. tell users not to contact you about the problem, or inform them when the problem is expected to be resolved. OPTIONS
--no-pin bb-ack.cgi normally requires the user to enter the acknowledgment code received in an alert message. If you run it with this option, the user will instead get a list of the current non-green statuses, and he may send an acknowledge without knowing the code. --no-cookies Normally, bb-ack.cgi uses a cookie sent by the browser to initially filter the list of hosts presented. If this is not desired, you can turn off this behaviour by calling bb-ack.cgi with the --no-cookies option. This would normally be placed in the CGI_ACK_OPTS setting in hobbitcgi.cfg(5) --env=FILENAME Loads the environment defined in FILENAME before executing the CGI script. --debug Enables debugging output. FILES
$BBHOME/web/acknowledge_header HTML header file for the generated web page $BBHOME/web/acknowledge_footer HTML footer file for the generated web page $BBHOME/web/acknowledge_form Query form displayed when bb-ack.cgi is called with no parameters. ENVIRONMENT VARIABLES
BBHOME Used to locate the template files for the generated web pages. QUERY_STRING Contains the parameters for the CGI script. BUGS
When using alternate pagesets, hosts will only show up on the acknowledgment page if this is accessed from the primary page in which they are defined. So if you have hosts on multiple pages, they will only be visible for acknowledging from their main page which is not what you would expect. SEE ALSO
bbgen(1), bb-hosts(5), hobbitserver.cfg(5) Xymon Version 4.2.3: 4 Feb 2009 BB-ACK.CGI(1)
All times are GMT -4. The time now is 11:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy