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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coping Content of Webpage and E-mail

Status
Not open for further replies.

Govnor

Technical User
Sep 3, 2002
55
GB
Hello,

This is my first time using Tek Tips, so I hope I can give a good explanation of what I need!

What I am doing:-
I am submitting a search criteria to a database, the search results come back on the same web page.


What I need:-
What I want to do is copy the content of the Results web page (i.e. the Text) and paste it into a input box that can be E-mailed to a user.

BUT I do not want the user to complete this by hand (i.e. Click select all – Then Click copy – Then Click paste)

I want the code to do this automatically for the user.

Please note: I cannot edit the code of the search results page, but I can edit the submit form (where the user enters there search criteria). Also I can make more web pages.

Thanks, if you can help me.
 
Hi,

If you can't edit the search results page, how will you achieve this? surely you will need a button on that page for 'email these results' or something?

If you can get around this, dynamically populating the content of a text box is pretty easy, just make a variable which holds the text of the results from the results page, and then response.write this variable within the 'value' attribute of your text box i.e.

<INPUT TYPE=&quot;text&quot; NAME=&quot;results&quot; VALUE=&quot;<% =resultsVariable %>&quot;>

I hope this is of some use, if not perhaps you could give us some more detail on what you want.
Nick (Web Developer)


nick@retrographics.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top