Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click link, enter name, go to next page 2

Status
Not open for further replies.

dkemas

Programmer
Mar 22, 2012
70
GB
I have a link on a page, is it possible that when someone clicks the link a box pops up asking for their name, on submit they are directed to another page with their name in the querystring?

Thanks
 
Hi

Code:
[b]<a[/b] [maroon]href[/maroon][teal]=[/teal][green][i]"[URL unfurl="true"]http://google.com/"[/URL][/i][/green] [maroon]onclick[/maroon][teal]=[/teal][green][i]"if(s=prompt('Your name'))this.href+='search?q='+escape(s)"[/i][/green][b]>[/b]go[b]</a>[/b]

Feherke.
 
That's great thanks, had to remove the word 'search' to correct the querystring ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top