That's what I want, an input tag that returns the URL.  But I don't
want user input, I want to grab the URL of the current page and return
it automatically, invisible to the user.  I would think that to be a
simple matter, but it doesn't seem to be so.

I tried this:

<input type="hidden" name="url" value=window.location.toString() />

but my HTML editor put quotes around the function and what I get back
is the function as a string, not the output of the function.

On Aug 28, 2:53 pm, mou <[EMAIL PROTECTED]> wrote:
> Is this a PERL question or a HTML question?  So.are you looking for the
> syntax for a hidden HTMLformelement?  Or a way of grabbing theURLin
> PERL?
>
> If its HTML, its just this:  <input type="hidden" name="url"
> value="enter website address here" />  (assuming you're outputting in xhtml)
> If its PERL, then I have no clue  ;-)
>
> [EMAIL PROTECTED] wrote:
> > That would replace the PERL script that process theformdata.  That's
> > not what I'm looking for.  I want the email I receive with the
> > person's name, phone number, etc, to also show me what website the
> > response came from.  Is that more clear?
>
> > On Aug 28, 2:00 pm, "Gewton Jhames" <[EMAIL PROTECTED]> wrote:
>
> >> Then is just as I said. Use the action of theformwith the function
> >> window.location
>
> >> On Thu, Aug 28, 2008 at 2:19 PM, [EMAIL PROTECTED]
> >> <[EMAIL PROTECTED]>wrote:
>
> >>> Yes, I want to return the current website along with the otherform
> >>> data.  Can I do that within a hidden input tag?  Not sure how to use
> >>> the output of a function instead of a declared or user-input value...
>
> >>> On Aug 27, 12:20 pm, "Gewton Jhames" <[EMAIL PROTECTED]> wrote:
>
> >>>> what web site? The current web site? just use the javascript function
> >>>> window.location
> >>>> For example, in the action attribute of theform, kind of:
> >>>> <formaction="javascript: window.location">
> >>>> I don't know if this works, but if not work, you can also try to call a
> >>>> function that just prints the window.location in the action of theform.
>
> >>>> On Tue, Aug 26, 2008 at 4:49 PM, [EMAIL PROTECTED]
> >>>> <[EMAIL PROTECTED]>wrote:
>
> >>>>> I'm looking to use aformfield to return theURLof the website.  Is
> >>>>> this possible?  If so, what would the code look like?  I'm familiar
> >>>>> with the basics of forms & Javascript, but I can't figure out how to
> >>>>> put it all together to get what I want.
--~--~---------~--~----~------------~-------~--~----~
--
You received this because you are subscribed to the "Design the Web with CSS" 
at Google groups.
To post: [email protected]
To unsubscribe: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to