FreewayTalk

agallagher

23 Feb 2007, 1:15 pm

How can I make a URL from a form

Hi

I want to make a form that asks for a few details from clients and then creates a url link on submit. ie I want the client to fill in their email adress and their domain name and when they submit effectively they are taken to the url below where "email@hidden" and "M_domain".com are filled in by client

https://customer.internet.co.uk/addpack.cgi?authcode=96538-lRp2;email=email@hidden;M_domain=domain.com;M_typeid=12345;status=Y

The purpose is mainly to send this

Is this possible or does it need some serious coding?

Cheers

Anthony

quote

waltd

23 Feb 2007, 1:21 pm

You can access these form variables with JavaScript, and dynamically create the URL that way. As long as it’s not a deal-breaker to have this happen on the client-side (and thus be subject to the slings and arrows of outrageous fortune) you could do it that way. The more secure way to do this would be with a simple PHP handler script custom written to sanitize the form values and then create the redirect header.

Walter

On Feb 23, 2007, at 9:15 AM, agallagher wrote:

[quote:3172f23ae6]Hi

I want to make a form that asks for a few details from clients and then creates a url link on submit. ie I want the client to fill in their email adress and their domain name and when they submit effectively they are taken to the url below where "your@…" and "M_domain".com are filled in by client

https://customer.internet.co.uk/addpack.cgi?authcode=96538-lRp2; email=your@…;M_domain=domain.com;M_typeid=12345;status=Y

The purpose is mainly to send this

Is this possible or does it need some serious coding?

Cheers

Anthony

[/quote:3172f23ae6]

This list is maintained by Softpress Systems - http://www.softpress.com

quote

Freeway user since 1997

http://www.walterdavisstudio.com