Print Page | Close Window

Form Data into Dynamic Link

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2902
Printed Date: 28 March 2026 at 4:08am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Form Data into Dynamic Link
Posted By: thisismatt
Subject: Form Data into Dynamic Link
Date Posted: 21 May 2003 at 4:32am

I have a form that supplies data into my ASP script to send an email to a distribution list, advising of an updated intranet page being available for viewing.

However, in the email there is a link which takes people directly to the page in question, but I'd like to make that a dynamic link - so that the date selected in the initial form is added to the end of the link in the email.

For example:

On the form I select the date 15 May 2003, which is detailed in the text of the email. But the hyperlink always remains as report.asp but I'd like it to say ../report.asp?date=15May03

Does anyone know how I can go about this?

Thanks in advance.
Matt




Replies:
Posted By: Mart
Date Posted: 23 May 2003 at 10:07am

put it all in a form

<form method="GET" action="report.asp" name="form1">

<input type="select" name="date">

Date fields here

</select>

(if the date has to be a hidden use this)

<input type="hidden" name="date" value="<%=request.form("date")%>">

<a href="javascript:document.all.form1.submit();">Hyperlink</a>

</form>

Hope that helps, Martin.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net