SunQuest
           Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 9th, 2006, 01:33 PM
gdjsmith gdjsmith is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Calgary, Alberta, Canada
Posts: 52 gdjsmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 35 sec
Reputation Power: 5
Send a message via MSN to gdjsmith
Forms using CGI/Perl to generate HTML

I'm trying to generate HTML Email signatures by submiting personal information to a CGI script form an HTML form.

I want users to submit their first and last names and phone numbers to a CGI script that will return an HTML page of a formatted company email signature using the submitted contact info.

Right now I'm working with a CGI script that uses Perl.
I've checked out a few CGI script pages but they all want to send email which is what I don't want to do.

How can I get the values from QUERY_STRING to print out within my HTML template using the CGI script.

Thanks

Reply With Quote
  #2  
Old June 19th, 2006, 07:04 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Salem, OH
Posts: 340 Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)Nilpo User rank is Sergeant Major (2000 - 5000 Reputation Level)  Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1Folding Points: 177116 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 2 Days 11 h 55 m 56 sec
Reputation Power: 50
Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo
The Perl CGI-Lib (Direct Download) is probably the easiest way to deal with form data.

This is a good example of how to parse POST data into a hash.
__________________
Ask the Windows Guru!

Open me for some very useful links!    

Reply With Quote
  #3  
Old June 19th, 2006, 07:31 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 532
Hi,

do you know what module your Perl script is using (if any). I'd guess it uses the CGI module(cgi.pm) which is generally recomended over cgi-lib.

Without knowing anything about the script it's hard for us to help. Can you post your script here? Also this should probably be in the Perl forum as opposed to the Scripts forum.

If you are using the cgi module, it's documentation can be found here, you might find something useful there.

Check out Ovids CGI Course for an excellent intro to Perl and cgi.

Displeaser
Comments on this post
Nilpo agrees!
__________________
Vi Veri Veniversum Vivus Vici.

Last edited by displeaser : June 19th, 2006 at 07:37 AM.

Reply With Quote
  #4  
Old June 19th, 2006, 09:55 AM
gdjsmith gdjsmith is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Calgary, Alberta, Canada
Posts: 52 gdjsmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 58 m 35 sec
Reputation Power: 5
Send a message via MSN to gdjsmith
Hi... I went from a Javascript popup to writing my first CGI Script, from the quick research I did most sites were telling me to write a CGI script using PERL both scripting languages I knew nothing about. I seemed to a cool little parsing scritp that would tokenize the QUERRY_STRING so I could pull out any and all form values that someone would generate.

It wasn't long until I wrote code that would pull out the values I was looking for or values someone elses form would send my script.

The site is working great right now. The CGI-Lib helped lots.

Thanks for responding!

Reply With Quote
Closed Thread

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Forms using CGI/Perl to generate HTML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway