6 Replies - 672 Views - Last Post: 17 February 2017 - 05:59 AM

#1 tholun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-February 17

How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:07 AM

Hi i need help to make my button a link i have tried to make it a hyperlink, but that dosen work, and i tried this code
<input type="submit" name="Registrer" id="Registrer" value="Registrer" onclick="location.href='Hovedsider.php'"/>
I tried to make it that when you press the button Registrer it should get me to the site after the registretion, but i wont get it to work. Can i please get some help?Attached Image

Is This A Good Question/Topic? 0
  • +

Replies To: How can i make my submit button a link to a new site?

#2 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4278
  • View blog
  • Posts: 13,563
  • Joined: 08-June 10

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:14 AM

why don't you use a form for that?
Was This Post Helpful? 0
  • +
  • -

#3 tholun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-February 17

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:17 AM

I'm very new to this, i have been working with html for 4 months and php for 2 months so i am not that good sorry
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich   User is offline

  • 痛覚残留
  • member icon

Reputation: 4278
  • View blog
  • Posts: 13,563
  • Joined: 08-June 10

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:20 AM

just make a regular form. it will operate as desired.
Was This Post Helpful? 0
  • +
  • -

#5 RamonRobben   User is offline

  • D.I.C Addict
  • member icon

Reputation: 91
  • View blog
  • Posts: 602
  • Joined: 19-May 14

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:21 AM

https://www.w3school.../html_forms.asp
Was This Post Helpful? 0
  • +
  • -

#6 tholun   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-February 17

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 01:24 AM

Thank you for the help it worked now :)
Was This Post Helpful? 0
  • +
  • -

#7 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6876
  • View blog
  • Posts: 31,666
  • Joined: 10-May 07

Re: How can i make my submit button a link to a new site?

Posted 17 February 2017 - 05:59 AM

Forms are not part of php, moving to html.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1