URLs in forms???

  • Thread starter Thread starter Nathan Martin
  • Start date Start date
N

Nathan Martin

Hello all,

Is there a way for a form to include the URL of the page the form is found
on? I have a form that is inserted on hundreds of pages via the include
webbot. It would be helpful if the output of the form included the page the
form was submitted from. Any ideas?

Thanks in advance,
Nathan
 
You may be able to do this with JavaScript. I know it can be done with ASP, ASP.Net or other
server-side scripting languages.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thomas A. Rowe said:
You may be able to do this with JavaScript. I know it can be done with
ASP, ASP.Net or other server-side scripting languages.

Thanks for that info. I'm on a Unix server so from what I understand ASP and
ASP.Net are not options for me. I was hoping to be able to do this within FP
but it looks like I'll have to look outside. Thanks again.

Nathan
 
Hi,
you'd just need to stick a hidden field on the form then populate it with
the current page, eg
<form......
your form fields
<input type="hidden" name="url" value="">
</form>
<script type="text/javascript">
document.forms[0].url.value=location.href;
</script>
 
Thank you!!! That was exactly what I was looking for! Thank you so much!!!

Nathan

Jon Spivey said:
Hi,
you'd just need to stick a hidden field on the form then populate it with
the current page, eg
<form......
your form fields
<input type="hidden" name="url" value="">
</form>
<script type="text/javascript">
document.forms[0].url.value=location.href;
</script>


--
Cheers,
Jon
Microsoft MVP

Nathan Martin said:
Thanks for that info. I'm on a Unix server so from what I understand ASP
and ASP.Net are not options for me. I was hoping to be able to do this
within FP but it looks like I'll have to look outside. Thanks again.

Nathan
 

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

Back
Top