Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Funce

  1. Just now, MyLifeForIre said:

    im running the code from my webpage. so my local machine is the webserver? i guess im not sure

    Webservers require specific set up, so you'd know if you had one.

    You'll need a webserver to run PHP code. I recommend XAMPP to test locally as its essentially install and run. Make sure you put your files into its 'htdocs' folder, and you should be good to test. Access via 'localhost'

  2. Hey there, if you want to code a backend for your contact form, you might have some luck looking at this: https://www.w3schools.com/php/php_forms.asp

    This is the function you'd want to use to send an email: https://www.w3schools.com/php/func_mail_mail.asp

    Onto your second question. Sell t-shirts and take online payments?

    • You'd want a payment processor. I'm personally familiar with Stripe and its really good for getting a checkout nice and quickly.
    • Unless you have less than 10 items, you'd probably want your own Database. This will have all the details of your shirts, including images, categories, etc Good for customers and for your payment processor. Manual upkeep of a page for each product gets tedious fast.

    Above is the bare minimum. You could look at a couple of other things afterwards (like logins, and accounts) but sticking with the above will get you up the fastest.

  3. Hi there,

    I'm getting instant response with the sounds, so I'm not sure what's going on there. I'm also using Chrome.

    I'd recommend using both click and scroll to access the hyperlink. You could use the code below for this. (Untested)

    <a href="https://en.wikipedia.org/wiki/Mammal" onscroll="this.click()">

    You can assign scroll events to any element, so the difference between an <a> tag and a <button> is not large in this case. You've got an extra set of bracers in myFunction which may be causing errors.

     

    I've also moved your thread to the JavaScript section, as requested.

    PHP

    So the above is what works, show me what doesn't work.

    You want an email field. You seem to have idea on how to start it, I want to see what you do with it.

  4. Are your changes getting through at all? Have you tried to make an unrelated but viewable change?

    Page could be cached, or you might not be on the right page at all.

    I think I've managed to find the page you've linked to, I've manually inserted the anchor tag via the browser dev tools. Everything looks fine.

    <div class="calcite-web">
      <div class="card-base">
        <div class="card-image-wrap">
        <a href="https://gis.franklincountyva.gov/compviewer/index.html">
          <img alt="Public GIS Viewer" class="card-image" src="https://franklincova.maps.arcgis.com/sharing/rest/content/items/a6e74f639ac34dd48e3bc6d9ee390d0a/data?w=400">
        </a>
        </div>
        <div class="card-content">
         <h4>Comprehensive Parcel Search</h4>
          <p style="min-height: 50px">This is a more comprehensive viewer for industry professionals that has more layers and more tools for those who work with land and real estate. </p>
          <div class="btn-group btn-group-justified" aria-label="actions" role="group">
          <a href="https://gis.franklincountyva.gov/compviewer/index.html" target="_blank" class="btn btn-primary">Access GIS Viewer</a>
          </div>
        </div>
      </div>
    </div>

    As an aside:

    card-image-wrap has basic styling and uses Flexbox

    .card-image-wrap {
        width: 100%;
        position: relative;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

     

×
×
  • Create New...