hellaby
11-28-2005, 05:54 PM
I am completely new to Perl/CGI coding and need someone to really help me by telling me (a) if what I'm trying to achieve can be done using CGI/Perl and (b) if so, help on how to achieve it. Here's what I want to do:
We're an art gallery and I want users of my website to be able to make an offer on any of the works of art for sale. I want them to be able to look at an item, click on a button and be directed to a form that comes up with the name of the artist and the item that they were just looking at atuomatically filled in for them. I want them to fill in their personal details below and then submit the form. The steps I think need to happen are as follows:
1. One form "The item they want to make an offer on" has to have two hidden fields in it named "artist" and "item". I want the values in these hidden fields to be submitted to the next form at the click of a button and to have the two values of "artist" and "Item" shown "automatically" on the new webpage. I want the customer to be able to see them.
2. The user then fills in his contact details below the fields that have "automatically" been filled in for him.
3. The submit button then needs to send all the data from the first and second forms to my email address.
I'm such a newbie to all this that if it is possible I would need to know the html/code required on each page and the script to make it happen. I've seen plenty of advice saying you need to parse this, parse that, use server scripting, etc, but nothing that actually shows you the code to achieve it. Can anybody help? I would be most grateful.
By the way, my ISP only operates CGI-Perl. No other options available. Although a total newbie, I can take instructions well!
We're an art gallery and I want users of my website to be able to make an offer on any of the works of art for sale. I want them to be able to look at an item, click on a button and be directed to a form that comes up with the name of the artist and the item that they were just looking at atuomatically filled in for them. I want them to fill in their personal details below and then submit the form. The steps I think need to happen are as follows:
1. One form "The item they want to make an offer on" has to have two hidden fields in it named "artist" and "item". I want the values in these hidden fields to be submitted to the next form at the click of a button and to have the two values of "artist" and "Item" shown "automatically" on the new webpage. I want the customer to be able to see them.
2. The user then fills in his contact details below the fields that have "automatically" been filled in for him.
3. The submit button then needs to send all the data from the first and second forms to my email address.
I'm such a newbie to all this that if it is possible I would need to know the html/code required on each page and the script to make it happen. I've seen plenty of advice saying you need to parse this, parse that, use server scripting, etc, but nothing that actually shows you the code to achieve it. Can anybody help? I would be most grateful.
By the way, my ISP only operates CGI-Perl. No other options available. Although a total newbie, I can take instructions well!