Learn computer science
Survey Button - Printable Version

+- Learn computer science (https://discuss.computersciencewiki.org)
+-- Forum: Questions and Answers (https://discuss.computersciencewiki.org/forum-1.html)
+--- Forum: Questions and answers (https://discuss.computersciencewiki.org/forum-2.html)
+--- Thread: Survey Button (/thread-50.html)

Survey Button - Pan Adam - 01-14-2021

Hi Mr. MacKenty,

I was wondering how I could make a 'Click here to take a survey' button on the homepage which would bring me to another page. I tried using previous assignments to help but I couldn't figure it out. Could you help me?

Thank you.  Big Grin
PHP Code:
<div class="text-center" style="float:center">
          <button type="button" class="btn btn-primary">Click here to take a survey! <form action="Workout_survey.php" method="POST"> </form> </button>

RE: Survey Button - bmackenty - 01-15-2021

Please try this: 

<a class="btn btn-primary" href="Workout_survey.php" role="button">Link</a>