Current location: Hot Scripts Forums » General Community » New Members & Introductions » Newest of the new! with a question...,


View Poll Results: Is HTML the right way to do what I'm trying to do?
yes 0 0%
no 1 100.00%
Voters: 1. You may not vote on this poll

Newest of the new! with a question...,

Reply
  #1 (permalink)  
Old 12-07-03, 01:18 AM
godavis4 godavis4 is offline
New Member
 
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Newest of the new! with a question...,

First of all let me say thanks to all of you who run and maintain these forums as well as all who contribute to these forums. It is, I can already tell, a great service to those like me who don't know where to start!

I am truly a newbie to all of this web coding/programming. I used to do MS-Foxpro programming years ago and have fallen away when it went the way of "object-oriented" programming. Now I wish I'd kept up. Anyway, I'm trying to do something that I think is probably "elementary" yet I need some guidance. Right now I have to put up a simple HTML screen that captures basic information about a visitor in a SINGLE page site. This information needs to be saved, lets say to a text file residing on the web server, (right now it doesn't have to be a database although later it could be a database ?Foxpro? maybe) and then sends the visitor who filled out the form, a predetermined email message as an immediate followup to their filling out the screen form.

Right now I have some HTML code that was given to me. I've attached the sample code. The best I can do is, using "common sense", -- logically modify sections, cutting and pasting logical modifications into this code. I'm not yet an HTML maven. I have this page displaying fine when I preview (of course with the proper embedded images present) but I don't know how to set it up so that when a visitor fills out the screen and clicks the button - all the followup steps described above in the previous paragraph are performed. (saves their info to file and sends them an preset email message)

I'm sorry if I'm stating this to simplistically, but this is the best I know how to describe what I need.

Again, thanks in advance for any help.

--Gary
Attached Files
File Type: txt sample_code.html.txt (8.6 KB, 184 views)
Reply With Quote
  #2 (permalink)  
Old 12-07-03, 03:30 PM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
You can do most of it with html, but at some point you are going to have to go to another scripting language.

You can get as far as you did with html, but you would more in order to save the data as well as send the email.

Depending on what your sever supports, you might want to look into asp or php. both should be able to do what you want.

a note about your html file, I didn't look through it all, but I did notice one thing you would need to change.
<FORM action=~submit_target~ method=post>
on that line, you need to change "~submit_target~ to another page. This other page would process the entries, save them to a txt file or database, then send the email.

I don't have time to go into it more right now, but I hope that gives you a start anyways.

Best of luck.
__________________
hyjacked
Reply With Quote
  #3 (permalink)  
Old 12-07-03, 04:00 PM
godavis4 godavis4 is offline
New Member
 
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by hyjacked
You can do most of it with html, but at some point you are going to have to go to another scripting language.

You can get as far as you did with html, but you would more in order to save the data as well as send the email.

Depending on what your sever supports, you might want to look into asp or php. both should be able to do what you want.

a note about your html file, I didn't look through it all, but I did notice one thing you would need to change.
<FORM action=~submit_target~ method=post>
on that line, you need to change "~submit_target~ to another page. This other page would process the entries, save them to a txt file or database, then send the email.

I don't have time to go into it more right now, but I hope that gives you a start anyways.

Best of luck.

Thanks, this is the type of guidance I need. Concerning PHP, can I keep all the work done already and then take some PHP code and attach it and use it to call this HTML form. I am somewhat "lost" on what to do. Is there a sample of this solution that you can suggest to me. When you said in your message..., "one thing you would need to change.
<FORM action=~submit_target~ method=post>
on that line, you need to change "~submit_target~ to another page. This other page would process the entries, save them to a txt file or database, then send the email." How would I do this?

Thanks for your patience in responding to my dilemma!

--Gary

PS -- What's the best way for me to learn this stuff?
Reply With Quote
  #4 (permalink)  
Old 12-07-03, 04:30 PM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, you can keep all of your coding so far. All you would need to do is with any page that will have PHP in it, rename the file from, for example, index.html to index.php. Then inside the file all the html will still work as it did before, but when you want to add in PHP code, surround the PHP code with <?php code_goes_here ?>

The best way to learn it would be to begin by reading a bit about PHP. I started with the manual at http://www.php.net
Read some of that first then when you feel comfortable with php in general, start looking into how to process the entries and send the email.

Hope this helps.
__________________
hyjacked
Reply With Quote
  #5 (permalink)  
Old 12-07-03, 06:25 PM
godavis4 godavis4 is offline
New Member
 
Join Date: Dec 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by hyjacked
Yes, you can keep all of your coding so far. All you would need to do is with any page that will have PHP in it, rename the file from, for example, index.html to index.php. Then inside the file all the html will still work as it did before, but when you want to add in PHP code, surround the PHP code with <?php code_goes_here ?>

The best way to learn it would be to begin by reading a bit about PHP. I started with the manual at http://www.php.net
Read some of that first then when you feel comfortable with php in general, start looking into how to process the entries and send the email.

Hope this helps.

Yes this is a great help, I've gone to the link and have started reading and will attempt to apply your suggestions. Thank you!

--Gary
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Welcome to the newest Community Leader! Ryan The Lounge 4 11-18-03 10:21 PM
Perl-PHP software Copyright question! kevin PHP 8 10-29-03 08:03 AM
My newest script MadDog Website Reviews 16 10-18-03 05:39 PM
PHP header question khadlock PHP 2 09-23-03 08:17 AM
Web Stat Question ossi44 New Members & Introductions 2 06-13-03 09:36 AM


All times are GMT -5. The time now is 02:49 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.