Sponsored Content
Top Forums Web Development Apache2 web application- Submit button - write data into a file Post 302932657 by baris35 on Friday 23rd of January 2015 06:10:16 AM
Old 01-23-2015
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 /var/www/html/index.html :
Code:
name: 
surname:
email:
phone:

Button name is "submit"
Filename that data will be inserted is "entry"
its path : /var/data/entry


Normally I can do such a thing with bash script but when it comes to html application, I do not have experience.


Your help will be highly appreciated.

Thanks
Boris

Last edited by rbatte1; 01-23-2015 at 08:35 AM.. Reason: Added CODE tags
 

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
MUNIN-HTML(8)							Munin Documentation						     MUNIN-HTML(8)

NAME
munin-html - A program to generate html-pages in an Munin installation SYNOPSIS
munin-html [options] OPTIONS
--service <service> Limit services to those of <service>. Multiple --service options may be supplied. [unset] --host <host> Limit hosts to those of <host<gt>. Multiple --host options may be supplied. [unset] --config <file> Use <file> as configuration file. [/etc/munin/munin.conf] --help View help message. --[no]debug If set, view debug messages. [--nodebug] DESCRIPTION
Munin-html is a part of the package Munin, which is used in combination with Munin's node. Munin is a group of programs to gather data from Munin's nodes, graph them, create html-pages, and optionally warn Nagios about any off-limit values. Munin-html creates the html pages. FILES
/etc/munin/munin.conf /var/lib/munin/datafile /var/log/munin/munin-html /var/cache/munin/www/* /var/run/munin/* VERSION
This is munin-html version svn-trunk-r4007 AUTHORS
Knut Haugen, Audun Ytterdal and Jimmy Olsen. BUGS
munin-html does, as of now, not check the syntax of the configuration file. Please report other bugs in the bug tracker at http://munin-monitoring.org/ <http://munin-monitoring.org/>. COPYRIGHT
Copyright (C) 2002-2009 Knut Haugen, Audun Ytterdal, and Jimmy Olsen / Linpro AS. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is released under the GNU General Public License SEE ALSO
For information on configuration options, please refer to the man page for munin.conf. 2.0.6-4+deb7u2 2013-11-12 MUNIN-HTML(8)
All times are GMT -4. The time now is 12:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy