Sponsored Content
Top Forums Web Development Apache2 web application- Submit button - write data into a file Post 302932665 by Neo on Friday 23rd of January 2015 07:07:52 AM
Old 01-23-2015
Normally web developers use PHP for web applications because there are many "superglobal" variables in PHP which are not present in bash or other shell scripts.

See: PHP Superglobals to learn more about the rich array of super global variables available in PHP.
This User Gave Thanks to Neo For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

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... (0 Replies)
Discussion started by: tip78
0 Replies

2. 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

3. 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

4. Shell Programming and Scripting

Write over data to new file

hi..i would ask about how to write over data to new file with BASH. so..assume my data looks like this : 11 12 13 14 15 ...and so on. It's always line by line. and that's for the first file. i want to write over those numbers into second file but by using space. so my second file should be... (5 Replies)
Discussion started by: syalala
5 Replies

5. 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

6. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

7. 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

8. Programming

Html form to submit data to bash script

hi all, im going to design a web html form so users can input what username and password they want to make the ftp account, once they enter in a username and password they click on the submit button and it submits it to a bash script and then the bash script will run and finish of making the... (3 Replies)
Discussion started by: robertkwild
3 Replies

9. Shell Programming and Scripting

Trying to submit web form content to a shell script

Hi I was hoping some one could help me with a problem I have. I am trying to collect some information from a web form and save it to a text file. I found an example on this site that is sort of what I am trying to accomplish, the shell script bellow should echo the input back to the browser... (0 Replies)
Discussion started by: Paul Walker
0 Replies
SUPERGLOBALS(3) 							 1							   SUPERGLOBALS(3)

Superglobals - Superglobals are built-in variables that are always available in all scopes

	Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need
       to do global $variable; to access them within functions or methods.

	These superglobal variables are:

	      o$GLOBALS

	      o$_SERVER

	      o$_GET

	      o$_POST

	      o$_FILES

	      o$_COOKIE

	      o$_SESSION

	      o$_REQUEST

	      o$_ENV

       +--------+---------------------------------------+
       |Version |					|
       |	|					|
       |	|	       Description		|
       |	|					|
       +--------+---------------------------------------+
       | 4.1.0	|					|
       |	|					|
       |	|  Superglobals were introduced to PHP. |
       |	|					|
       +--------+---------------------------------------+
       Note

	      Variable availability

	       By default, all of the superglobals are available but there are directives that affect this availability. For further  information,
	      refer to the documentation for variables_order.

       Note

	      Dealing with register_globals

	       If the deprecated register_globals directive is set to on then the variables within will also be made available in the global scope
	      of the script. For example, $_POST['foo'] would also exist as $foo.

	       For related information, see the FAQ titled "How does register_globals affect me?"

       Note

	      Variable variables

	       Superglobals cannot be used as variable variables inside functions or class methods.

       variable scope, The variables_order directive, The filter extension.

PHP Documentation Group 													   SUPERGLOBALS(3)
All times are GMT -4. The time now is 09:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy