[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [SLUG] HTML -- Parsing values to a text box via the URL Address line
Actually it is pretty easy to do via Javascript. There's example in the
O'Reilly's Rhino book which breaks up the param=value&v2=p2... type strings.
Of course if you're lazy like me and have control of the URL you can cheat
and simply pass a delimited string (in my case using "+"). In which case use
the following Javascript fragment.
sstr = self.location.search;
values = sstr.substr(1);
a = values.split("+");
document.write("String 1 is ");
document.write(a[0]);
etc ...
However the Javascript option is only preferable when you cannot get your
hands onto PHP. E.g. when the client refuses to have php installed on their
IIS server. :-(
Dave.
--
David Zverina
Alt Key Pty. Ltd.
http://www.altkey.com
PO Box 3121, Parramatta, 2124, Australia
> -----Original Message-----
> From: owner-slug@nospam.newtreno.spectrum.com.au
> [mailto:owner-slug@nospam.newtreno.spectrum.com.au]On Behalf Of Matt Allen
> Sent: Wednesday, 31 May 2000 17:12
> Cc: 'slug@nospam.slug.org.au'
> Subject: Re: [SLUG] HTML -- Parsing values to a text box via the URL
> Address line
>
>
> George,
>
> You'll need some sort of ServerSide scripting to make this happen
> easily, you *might* be able to do it via javascipt too if you search
> hard.
>
> Have a look at PHP (www.php.net)
>
> Matta
>
> George Vieira wrote:
> >
> > Hi all,
> >
> > Does anybody know how do you pass information to a HTML page to
> fill a form
> > eg.
> > In an email sent to you.. you might have:
> >
> >
> http://register.domain.com.au/signup.html?formName=George&formEmai
> l=georgev@nospam.
> > citadelcomputer.com.au
> >
> > This doesn't work for me, and I'm not sure it's suppose to or
> if the syntax
> > is right?
> >
> > Any help?
> >
> > thanks,
> > George Vieira
> > Network Administrator
> > Citadel Computer Systems P/L
> > http://www.citadelcomputer.com.au
> >
> > --
> > SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> > To unsubscribe send email to slug-request@nospam.slug.org.au with
> > unsubscribe in the text
>
> --
> Matt Allen Linux/PHP eCommerce
> Solutions
> Linux Worx Linux Networking
> www.linuxworx.com.au Consulting
> matt@nospam.linuxworx.com.au
> 0413 777 771
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to slug-request@nospam.slug.org.au with
> unsubscribe in the text
>
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text