Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2007, 05:12 AM
eljizzle eljizzle is offline
Senior Member
 
Join Date: Dec 2006
Location: Las Vegas, NV
Posts: 455
Default Any HTML gurus out there? I need help please...

How do I get information submitted in an HTML form to me?

I am just learning HTML because I'm designing an internal website for my company. I have a page where users will submit queries in a form. I found the code for the form and have managed to alter enough to make it look like I need it to, but I need to figure out how to make the results get to me. The web server will essentially be a mapped network drive. I need the results of the form either left on the drive in a text file or whatever, or emailed to me, I don't care which, whichever is easier.... Can someone explain to me the easiest way to do this...or point me in the right direction? Thanks so much...
Reply With Quote
  #2  
Old 06-05-2007, 06:17 AM
psionic storm psionic storm is offline
Senior Member
 
Join Date: Feb 2007
Location: Hamilton, ON, Canada
Posts: 279
Default Re: Any HTML gurus out there? I need help please...

hi, you would want to make a <form> in your html and then write cgi to handle the user's input.

you need to know a programming language like python/c

for more information on html goto w3.org
for more information on writing cgi in c,
http://www.cs.tut.fi/~jkorpela/forms/cgic.html
for more information on python go to python.org
Reply With Quote
  #3  
Old 06-05-2007, 06:20 AM
pokergrader pokergrader is offline
Senior Member
 
Join Date: Apr 2005
Posts: 3,792
Default Re: Any HTML gurus out there? I need help please...

Just search the internet for "form processing php script" and you will find what you need.

C and Python are not the right tools for this simple job, stick to PHP.
Reply With Quote
  #4  
Old 06-05-2007, 06:53 AM
eljizzle eljizzle is offline
Senior Member
 
Join Date: Dec 2006
Location: Las Vegas, NV
Posts: 455
Default Re: Any HTML gurus out there? I need help please...

[ QUOTE ]
hi, you would want to make a <form> in your html and then write cgi to handle the user's input.

you need to know a programming language like python/c

for more information on html goto w3.org
for more information on writing cgi in c,
http://www.cs.tut.fi/~jkorpela/forms/cgic.html
for more information on python go to python.org




Just search the internet for "form processing php script" and you will find what you need.

C and Python are not the right tools for this simple job, stick to PHP.

[/ QUOTE ]

thanks
Reply With Quote
  #5  
Old 06-05-2007, 07:53 AM
eljizzle eljizzle is offline
Senior Member
 
Join Date: Dec 2006
Location: Las Vegas, NV
Posts: 455
Default Re: Any HTML gurus out there? I need help please...

Ok...I'm still having trouble here....I got php downloaded, but the install looks insanely complex. I know this sounds dumb, but I only have access to the shared drive, not the computer that drive (and web files) is one or its OS. It is going to be a very small site, like 15 pages or so with information and one page with the one form. This form is pretty much the reason this site is being implemented and I'm about to go insane trying to figure it out. I have the form perfect, I just can't figure out how to get the information sent to me or left on the server in a file. All the client computers are using updated firefox, so I've got to imagine that they are using the latest java. This being said, I am fine with a client side solution as well. If anyone can help further, I'd be very appreciative, I really have no idea what I'm doing and my job may depend on this....(long story)

THANKS
Reply With Quote
  #6  
Old 06-05-2007, 08:01 AM
kerowo kerowo is offline
Senior Member
 
Join Date: Nov 2005
Posts: 6,880
Default Re: Any HTML gurus out there? I need help please...

You will need to talk to the IT guys about getting PHP installed on the server.
Reply With Quote
  #7  
Old 06-05-2007, 08:09 AM
eljizzle eljizzle is offline
Senior Member
 
Join Date: Dec 2006
Location: Las Vegas, NV
Posts: 455
Default Re: Any HTML gurus out there? I need help please...

[ QUOTE ]
You will need to talk to the IT guys about getting PHP installed on the server.

[/ QUOTE ]

Is it still considered a "server" if I just have one folder of the .html files on a folder of this mapped drive? I don't even know where that computer is, and I can't find out due to reasons I won't go into. Can I just put certain php files in that folder and have it work? Is there ANY other way to do this besides server side? I mean there is seriously no idea that is too basic...all I need is a reliable way to get the data that was put in the form, i don't care what format or file type its in....I mean something as crazy as automatically doing a "save as" and saving the page or something...i don't know...thats probably not an html function, but again, I'm looking for client solutions here...thanks in advance to anyone that can help
Reply With Quote
  #8  
Old 06-05-2007, 08:14 AM
kazana kazana is offline
Senior Member
 
Join Date: May 2006
Location: nowhere
Posts: 2,036
Default Re: Any HTML gurus out there? I need help please...

It's easy enough to find out if php is installed.

Just drop a phpinfo.php file into the directory with this in it:
<font class="small">Code:</font><hr /><pre>&lt;? echo phpinfo(); ?&gt;</pre><hr />

Then request that file in your web browser. If it returns some table with all kinds of settings and parameters, you'll know it works. If it returns the above, php is not installed.
Reply With Quote
  #9  
Old 06-05-2007, 08:16 AM
kerowo kerowo is offline
Senior Member
 
Join Date: Nov 2005
Posts: 6,880
Default Re: Any HTML gurus out there? I need help please...

I believe that PHP is interpreted, what the means is that there is a program running on the server* that reads the PHP code and executes it. If you don't have authority on that box to run programs you won't be able to do anything with the forms once they are filled out. In fact, I'm not sure how you are going to get anything to go back to that location.

I'm assuming you are pointing directly to the file on that server and there isn't a web server running there, so when the browser posts back the stuff in the form there isn't anything on the back side to read it.

If you don't have access to the machine and can't get the owner of the machine involved and it's top secret then you 1) have a crappy job and 2) are probably out of luck. You would be better off either trying to use your own computer at work, assuming you have admin rights on it and can run IIS and PHP on it, or trying to find some free web hosting place to run the page on.

*A server is any machine that isn't someone's desktop, and sometimes is someone's desktop.
Reply With Quote
  #10  
Old 06-05-2007, 08:32 AM
eljizzle eljizzle is offline
Senior Member
 
Join Date: Dec 2006
Location: Las Vegas, NV
Posts: 455
Default Re: Any HTML gurus out there? I need help please...

[ QUOTE ]
I believe that PHP is interpreted, what the means is that there is a program running on the server* that reads the PHP code and executes it. If you don't have authority on that box to run programs you won't be able to do anything with the forms once they are filled out. In fact, I'm not sure how you are going to get anything to go back to that location.

I'm assuming you are pointing directly to the file on that server and there isn't a web server running there, so when the browser posts back the stuff in the form there isn't anything on the back side to read it.

If you don't have access to the machine and can't get the owner of the machine involved and it's top secret then you 1) have a crappy job and 2) are probably out of luck. You would be better off either trying to use your own computer at work, assuming you have admin rights on it and can run IIS and PHP on it, or trying to find some free web hosting place to run the page on.

*A server is any machine that isn't someone's desktop, and sometimes is someone's desktop.

[/ QUOTE ]

ok, thanks for the input..

keep in mind, I'm not an IT person, or involved in IT in any way. I basically just suggested that I make a website that would solve a lot of the inefficiencies of my department, and my manager told me to go ahead, I sort of promised that I could implement this "form" because our current method involves multiple users opening an excel sheet, entering data, and resaving it, and this results in all kind of problems like duplicate entries, multiple copies of the spreadsheet and on and on....the form seemed like the perfect solution...but i guess its harder than i thought
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.