Reply to Re: Pass values through a PHP form emailer

Your name:

Reply:


Posted by Stewart on 10/01/05 04:42

"Marc" <mbradshaw@beasolutions.com> wrote in message
news:1128069898.19465.0@eunomia.uk.clara.net...
> Stewart wrote:
> >>>I have a very basic PHP script that emails forms submitted to it.
> >>>It has a success page/URL feature.
> >>>I'd like to learn how to modify this script to pass certain vales onto
> >>>the success page.
> >>>
> >>>So the URL to my destination page may be in this format:
>
> This is exactly what I have given you - no PHP (or JavaScript for that
> matter) is required to produce a page "to pass certain values onto the
> success page. So the URL to my destination page may be in this format:"
>
> >>>
http://www.test.com/passing-values-source2.htm?firstname=Amanda&lastname=Wilson&age=77
>
> All you need to do is add three <input /> tags to the form HTML below,
> and you'll get a URL exactly like that above.
>
> >><form method="get" action="passing-values-source2.htm">
> >>
> >>... form input tags here ...
> >>
> >></form>
>
> Then you said...
>
> > This won't pass through my PHP script wll it?
> >
> > This encloding would have to be in the script I think.
>
> I have no idea what you're trying to say here... 'pass through my PHP
> script' means nothing... and 'encloding' (encoding?) has nothing to do
> with anything.
>
> Do you mean you want to access the values within the PHP script? If you
> just wanted to display them, you can use the following HTML and PHP:
>
> <p>First name: <?= $firstname ?></p>
> <p>Last name: <?= $lastname ?></p>
> <p>Age: <?= $age ?></p>
>
> That is assuming you'd called the <input>s on the first HTML page
> firstname, lastname, and age, and therefore had a URL with the same
> query string (the bit after the ?) as that above.
>
> Marc

I'm sorry I don't know all the correct terminology, that is part of what I'm
hoping to learn Marc.
I'm sorry, but I considered a value entering And exiting a script "passing
thru".

I have spoken to people knowing little about PHP, and they understood how
values can be appended to a URL. This is commonly how values are passed
between web pages. Example:
http://www.domain.com/page.htm?name=Andrea&email=andrea@aol.com&message=textmessage

The destination URL would then contain a function that would parse the
appended information for display and/or passing to next URL.

This may help you understand my objective:
http://javascript.internet.com/forms/passing-values.html

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация