Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I...write inputs back to the bottom of the previous page

Status
Not open for further replies.

m204prgmr

IS-IT--Management
Mar 9, 2004
7
US
G'morning everyone,
Here's my dilema...
When the user is sent to the Thank you page, I get an email with the subject New Guestbook Entry. I want the content but need to change the subject telling me which page it came from, (I have 4 different user input pages). What I am looking for is a way to post to the bottom of the page the user came from and at the same time, allow me to be "notified" via email with a subject line of my choosing.
I might be looking for a validation page showing the user what they inputed and asking for their approval? And at the same time modifying that web page they are looking at so they cannot use their back button or close the page without submiting an ok? Is there a easier softer way? I started to read about Environmental Variable but am a bit lost right now and I would sure like to see an example if possible. Does this make any sense and oh, by the way, (you're gonna love this), this is inside AOL. I cannot use a database.
Thanks for your creativity.
Robert
 
Simon, the email is generated via a .gbt file.

Here is a test page just created. Four input fields, press submit, you go to a thank you page and when you go back to the previous page, it is filled in at the bottom and my email says New Guestbook Entry.....ugh!

Thanks,
Robert
 
within your a href tag

change this:

"mailto:robert"

to

"mailto:robert?subject=My site is fantastic
 
this was the element that I was refering to:
<A HREF="mailto:robert">robert</A>



sorry i cant see how this generated on the server
 
Simon,
I'm a bit confused now......which page is this suppose to go on and where? thanks
Robert
 
I dont know how the pages are being created on the server - so I cannot tell you, do you not have control over the server side code?
 
Simon...sorry for the delay
I am not sure how much flexability I might or might not have on AOLs' servers......most likely not much. These are simple HTML pages with a little Javascript that are uploaded to the FTP site.
If I use a .eml file how can I capture the variables when I am at the thank you page to post back to the first page?
 
I have no idea - eml file are used by ms outlook to store emails (i think), dont know how to access them using javascript - you could try loading using activex and xml however this would only work in ie.
 
Simon,
The .eml is a format file that is HTML in content using
#fieldname# in it.
It looks like this:
Submission of #date# at #time# [EST]
<A HREF="mailto:#email#">#name#</A> from #state#, #country#
commented on our website:
#comments#

and the .gbt looks exactly the same.
 
It seems to me what is happening is there is some server side code used to 'find and replace' these elements #email# and replace them with code stored on the server, but like I said before, without seeing any server side code I would be guessing.

You try adding your own

#title# ? something like thta - and keep going til the page does what you want
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top