Passing content of a text field to another page

J

Jerry Manner

Hi


I am wondering if the following is possible:


A page contains a text field in which, manually, text can be placed.
Next to the text field there is a button. Clicking that button will
open another page.
I would like to see the text in the field on the top part on the second

page.


Is this possible, if so, how can I do it?


Regards
 
M

mbstevens

Jerry said:
Hi


I am wondering if the following is possible:


A page contains a text field in which, manually, text can be placed.
Next to the text field there is a button. Clicking that button will
open another page.
I would like to see the text in the field on the top part on the second

page.


Is this possible, if so, how can I do it?


Regards
Easily if the pages are generated server-side.
This sounds exotic but is no biggie.
Pick up a little Perl/CGI (my favorite)
or PHP. If your ISP doesn't allow server side
privileges, fire them.
 
J

Jerry Manner

Hi

Thank you for replying. Sorry, but I have build a simple website using
FrontPage Is it possible to do it in that program?

Regards
 
M

mbstevens

Jerry said:
Hi

Thank you for replying. Sorry, but I have build a simple website using
FrontPage Is it possible to do it in that program?

Regards
Doubt it.
Also, see:

http://www.webpagesthatsuck.com/biggest-web-design-mistakes-in-2004-part2.html

....number 14 toward the bottom of the page.

You'll be a lot better off with notepad and a quick tutorial, at say:
http://www.w3schools.com/xhtml/

I doubt you'll find anyone here that thinks that FrontPage is worth
fooling around with.
 
D

David Dorward

Jerry said:
Thank you for replying. Sorry, but I have build a simple website using
FrontPage Is it possible to do it in that program?

Do what? Please quote an apropriate amount of material to give context to
your response. Not everybody reading a message will have (or be able to)
read previous messages in a thread.

http://groups-beta.google.com/group...hread/535136b0d72552dd/5d0003a463fd7330?tvc=1

No. Nothing you run on your workstation can do this. You need a process
running on the server.
 
D

David Dorward

mbstevens said:
I doubt you'll find anyone here that thinks that FrontPage is worth
fooling around with.

And not too many who think w3schools is worth fooling around with:

"XHTML is a W3C Recommendation"

Its actually several, not to mention working drafts and so on.

"XHTML is compatible with HTML 4.01."

What is this supposed to mean?

"All new browsers have support for XHTML."

Define "new". My 12 month old copy of W3M doesn't, nor does the latest
version of Internet Explorer.

"W3C defines XHTML as the latest version of HTML"

Really? Where? I've only seen it described as a replacement for HTML.

"HTML was designed to display data"

No it wasn't. It wasn't even designed to describe the way data should be
displayed.

"XHTML pages can be read by all XML enabled devices"

So my theoretical device which parses a RDF weather feed and changes the
colour of a glowing ball thingy can read XHTML? Wow!

"XHTML gives you the opportunity to write 'well-formed' documents now,
that work in all browsers and that are backward browser compatible"

http://dorward.me.uk/tmp/gr.png - yes "work". Right. That would mean
thinking that in HTML <img .../> means the same as <img ...> wouldn't it?

"!!!"

Three exclamation marks, surely the sign of a deranged mind.

"The Most Important Differences:
* XHTML elements must be properly nested"

This is different from HTML how?

"* All XHTML elements must be closed"

This is different from HTML how? The difference is they must be *explicitly*
closed, rather then implicitly by being defined as EMPTY.

"In HTML some elements can be improperly nested within each other like
this:
<b><i>This text is bold and italic</b></i>"

No they can't!

.... and so on.
 
I

Ian Rastall

I doubt you'll find anyone here that thinks that FrontPage is worth
fooling around with.

Certainly we would have a smaller Web if everyone who did a web page
had to learn HTML. Take that as you will.

Ian
 
D

David Dorward

David said:
A very bad example; it leaves the site open to a cross-site scripting
attack.

Oh, and the HTML (or is it XHTML? Its hard to tell) is invalid as well.
 
H

Hywel Jenkins

Doubt it.
Also, see:

http://www.webpagesthatsuck.com/biggest-web-design-mistakes-in-2004-part2.html

...number 14 toward the bottom of the page.
Myth.


You'll be a lot better off with notepad and a quick tutorial, at say:
http://www.w3schools.com/xhtml/

I doubt you'll find anyone here that thinks that FrontPage is worth
fooling around with.

FrontPage is an OK piece of software. The earlier version were shit,
plain and simple, producing shit code and shit templated sites.
However, put it in the hands of someone that has a clue and it's more
than capable of producing well-designed HTML/XHTML valid sites.
 
J

Jerry Manner

Hi

Isnt there a way to pas the text from the text field in the url address
of the second webpage as a parameter? and when the second webpage has
opened take the parameter abd place it in another field on the second
webpage?
 
D

David Dorward

Jerry Manner wrote:

Please don't top-post: http://www.allmyfaqs.com/faq.pl?How_to_post
Isnt there a way to pas the text from the text field in the url address
of the second webpage as a parameter?
Yes.

and when the second webpage has opened take the parameter abd place it in
another field on the second webpage?

Trivial in pretty much any server side programming environment (as mentioned
previously in this thread).

Frontpage can't do that though, it generates Markup[1]. It can't edit pages
in response to query string data (since its stoped dealing with the page
long before the query string data gets there).

[1] although not very well
 
S

Steve Pugh

Jerry Manner said:
Isnt there a way to pas the text from the text field in the url address
of the second webpage as a parameter? and when the second webpage has
opened take the parameter abd place it in another field on the second
webpage?

Yes, there are ways to do that. Which server side language will you be
using?

Steve
 
L

Louise Balmforth

Hi


I am wondering if the following is possible:


A page contains a text field in which, manually, text can be placed.
Next to the text field there is a button. Clicking that button will
open another page.
I would like to see the text in the field on the top part on the second

page.


Is this possible, if so, how can I do it?


Regards

Don't hang me for this, I'm no expert with HTML or web design, but unless
I'm missing the point here somewhere this sounds pretty much like the
question to the answer I'm looking for.

Would this not be possible using Javascript?

What I want to be able to do is link to a page and pass a name to that page
using a query string attachment on the url which could then be fed to a
flash animation to enable the animation to be tailored to the passed query
string.

I have been trawling all over for some means to achieve this, and came
across the following link,
http://www.faqts.com/knowledge_base/view.phtml/aid/9574/fid/53 Would this
method not work for both of us with some work on the Javascript?


Alan
www.bratpack.org.uk
Remove '-cut-' from address before replying.
 
I

Ian Rastall

What I want to be able to do is link to a page and pass a name to that page
using a query string attachment on the url which could then be fed to a
flash animation to enable the animation to be tailored to the passed query
string.

I'm afraid I'm not an expert either, but if all you need to do is pass
a query string, you can probably do that with regular forms. In lieu
of me making more guesses, here's the relevant section from the HTML
4.01 spec:

http://tinyurl.com/dz3x2

HTH

Ian
 
L

Louise Balmforth

I'm afraid I'm not an expert either, but if all you need to do is pass
a query string, you can probably do that with regular forms. In lieu
of me making more guesses, here's the relevant section from the HTML
4.01 spec:

http://tinyurl.com/dz3x2

I assume this is the answer to the first part of the answer to the origional
post, this would encode the query string and pass it on to via the url.

The problem as I see it is retreiving this information from the url in the
browser window it opens. For my requirements I do not need to use forms at
all, I want to manually append a query string to a url and extract that
information from the url and pass it on to a flash movie.

In essense, what I want to do is use a url such as
www.bratpack.org.uk/myflashmovie.html?john_doe and in the resulting page the
flash movie uses the john_doe to greet the viewer personally.

Obviousely on the server side this would be reletavely easy with a cgi
script, but alas my shite ISP's free webspace offers me no such luxury. This
is where the javascript link comes into the equation, it appears to me this
would allow me to extract the query string from the url and pass it on to
the flash movie within the page. If this is true, then surely it would also
be possible for the origional post's author to use the same technique?
combined with the form data info you provided.

I will switch to Louise mode as I noticed from last post my news settings
are set up with that :))

Louise
www.bratpack.org.uk
 
S

Steve Pugh

Jerry said:
I am not using a server.

In that case it can't be done with any reliability.
I have build a website using Frontpage

Most sites built with Frontpage end up on a server.

If you're not using a server, where is this web site? On your hard
drive? On a CD-ROM?

If you control the viewing environment you can use JavaScript to read
the values from the URL. window.location.search will return everything
after the ? as a string, you can then manipulate that string as you
like.

But as soon as this is being displayed in an environment where the user
is in control (such as the WWW) then you need to consider the case
where JS is disabled.

Steve
 
J

Jerry Manner

I'm afraid I'm not an expert either, but if all you need to do is pass
a query string, you can probably do that with regular forms. In lieu
of me making more guesses, here's the relevant section from the HTML
4.01 spec:

Hi, i am also not an expert. I have visited the url you mentioned in
your post. From that website I concluded that I should use the form tag
with the method and action attribute to place the extra string at the
end of the url of the webpage I am going to.

<FORM action="ResultFrame.htm" method="get">
<input type="text" name="T1" size="40">
<a href="ResultFrame.htm" target="_top"><img border="0" src="Knop.gif"
width="129" height="18"></a>
</FORM>

I have tried this code. I was assuming that I would see the url (
ResultFrame.htm) and then a question mark and then the content of the
text field, but that was not the case. Please correct me if I am
tottaly of track.
I know how to get the url adress of the visitingpage and then use
javascript to get a part of that url ( with the extra string). But I
still cannot open an url with attach to the address an extra string.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top