Welcome to WebmasterWorld Guest from 54.196.147.57

Forum Moderators: phranque

Message Too Old, No Replies

Sending forms data to another page AND as email

help please

     

Sinner_G

2:47 pm on Aug 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Need help on this one. I have this page which contains a form. The content of this form has to be sent to an asp page AND also as an email.

The function for the asp page is this:

fCmp.action= "http://www.site.com/default.asp";
fCmp.method= "POST";
fCmp.submit();

Problem is, after this, the fields are emptied, so they cannot be sent as email.

Anyone knows a way out of this? Thanks in advance.

pcguru333

3:11 pm on Aug 19, 2002 (gmt 0)

10+ Year Member



What is the code you use on your asp page to post the content to the browser?

I have an asp page that sends the content via e-mail and then posts it to the page.

Would something like this work for you?

txbakers

3:20 pm on Aug 19, 2002 (gmt 0)

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Sure, just reverse your steps. Send the POSTED information to the email first, then post to the database.

Sinner_G

3:22 pm on Aug 19, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the code you use on your asp page to post the content to the browser?

Not sure what you mean. It is just a plain form with a submit button.

Would something like this work for you?

Sounds good!

txbakers, I tried that, but the fields were emptied after sending the email.

uk_dokey

3:01 am on Aug 26, 2002 (gmt 0)

10+ Year Member



Hi Sinner,

What does the asp page do that the form points to? Does it just display hwat they typed in on the form? On the info you give its difficult to help you. I would suugest something like this?

Use Jmail (a free email script just do a search) in the Jmail scipt you could use session variables if the data inputted isn't too long. These variables would grab the info from the previous form and store it. You could then call the variables from the asp scipt. You need to go to w3schools and check out the asp section then session variables to see what I mean.

Hope this helps if you give more info I will see what I can do.

Peace

 

Featured Threads

Hot Threads This Week

Hot Threads This Month