944,210 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 9322
  • Perl RSS
Sep 25th, 2006
0

submit button code

Expand Post »
I designed a website for my husband, but I'm having trouble getting the submit button to work the way I want it. I want it to send the customers information to our email address and then to a thank you page. I've been able to get it to send the information to our email address but it doesn't do anything else. I've tried looking on the web for code that will do this, but I don't understand what information goes where. It took quite a while for me to figure out how to setup the button to sent the information to our email address, but that's as far as I've been able to go.

I've tried a redirect code, but the only way I could get it to work is if a set a timer to it. But I don't want to go that way, because what if the customer isn't finish writing yet and then they get redirected before their done. So that didn't work. When I tried it without the timer, nothing happened.

Right now when the customer clicks the submit button, it sends the information to our email address, but nothing changes on the screen. So the customer thinks nothing happen, so they click it again. Some times we get several of the same message.

I've looked at other websites and I see where they used a CGI file. I don't know how to write CGI code. From what I've read it's similar to Pearl. Well I don't know Pearl either.
Similar Threads
Reputation Points: 18
Solved Threads: 0
Newbie Poster
Little E is offline Offline
7 posts
since Sep 2006
Sep 27th, 2006
0

Re: submit button code

Can we see some code please?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vonfeldt is offline Offline
8 posts
since Jul 2005
Nov 15th, 2006
0

Re: submit button code

could you please help me out the coding of submit button you used plaese its urgent




Click to Expand / Collapse  Quote originally posted by Little E ...
I designed a website for my husband, but I'm having trouble getting the submit button to work the way I want it. I want it to send the customers information to our email address and then to a thank you page. I've been able to get it to send the information to our email address but it doesn't do anything else. I've tried looking on the web for code that will do this, but I don't understand what information goes where. It took quite a while for me to figure out how to setup the button to sent the information to our email address, but that's as far as I've been able to go.

I've tried a redirect code, but the only way I could get it to work is if a set a timer to it. But I don't want to go that way, because what if the customer isn't finish writing yet and then they get redirected before their done. So that didn't work. When I tried it without the timer, nothing happened.

Right now when the customer clicks the submit button, it sends the information to our email address, but nothing changes on the screen. So the customer thinks nothing happen, so they click it again. Some times we get several of the same message.

I've looked at other websites and I see where they used a CGI file. I don't know how to write CGI code. From what I've read it's similar to Pearl. Well I don't know Pearl either.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rickymartin001 is offline Offline
2 posts
since Nov 2006
Nov 15th, 2006
0

Re: submit button code

Never saw code from the original poster. if you are attempting the same thing - and have ANY code, lets have a look! okay?

-chrisv
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vonfeldt is offline Offline
8 posts
since Jul 2005
Nov 18th, 2006
0

Re: submit button code

To make a Perl script display a page you have already created, do this:

perl Syntax (Toggle Plain Text)
  1. open(file1, "thanks.html");
  2. @data = <file1>;
  3. close(file1);
  4. $page = join("", @data);
  5. print "Content-type: text/html\n\n$page";

Just make sure your thanks page has a link for the user to get back to the rest of your site.

Steven.
Reputation Points: 47
Solved Threads: 1
Posting Whiz in Training
Mushy-pea is offline Offline
271 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Multiple pattern matches inside a BLOCK
Next Thread in Perl Forum Timeline: parsing problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC