0

after click the submit button on my form, how do I add the anchor "#work" in the url without reloading the page?

example: www.test.it/#work

i use header('Location: #work'); but refresh my page.

Update:

I use "jessica" solution: I think the page is reloaded

But don't work, ca see here: http://www.substellar.it/ftende/contatti/

I think the page is reloaded

Eugenio
  • 45
  • 4

1 Answers1

1

Just add #work to the action in form for it to show up in the link.

<form action = "url#work">
jessica
  • 1,667
  • 1
  • 17
  • 35