Forum Moderators: open

Message Too Old, No Replies

webpage user entering data then recombined in page with new material

Taking user entered data in to a new page -- like a form but in a webpage

         

flynpenoyer

8:48 pm on Jul 1, 2001 (gmt 0)



I want my user to enter something on a webpage ---then I want to show a new page with what he entered included

If it can be done in html great -- simpler the better. Its sort of like the hidden text of a form you can add data to what they entered.

tedster

9:36 pm on Jul 1, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, flynpenoyer

Straight HTML isn't up to this job, but there are several technologies that could be used.

Here's a link to a nifty Javascript technique for passing values from a form on one page to be written into the code of another page:
[javascript.internet.com...]

flynpenoyer

4:54 am on Jul 2, 2001 (gmt 0)



I got the script to work but the output I am looking for is a short paragraph -- how do I format its out put to the size of the page being used?

tedster

9:01 pm on Jul 2, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just as the code they show has break tags in it, you can place any HTML you want inside the parens of the document.write() section of that code, and javascript will write that into the page. So you can format the output however you would like.

flynpenoyer

7:16 pm on Jul 3, 2001 (gmt 0)



Still having some trouble with it. If you want to try it yourself the page is:

[tips4selling.com...]

When the answer displays it comes out:

answer = asdfad+asdfasdf+a+asdf+asdf+asd+asd+fasd+fasd+fasdf+asdf+asd+a

And it goes straight of the right side of the page. Need to get rid of the + signs.

Thanks for your help