SHARE

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/vuejs-playlist
+ Atom editor – https://atom.io/a
+ Download GIT – https://git-scm.com/
+ Vue docs – https://vuejs.org/v2/guide/

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress, Node.js & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

7 COMMENTS

  1. Hi, I noticed that the http request doesn't send post data..
    This is an example code:
    this.$http.post('prova.php',
    {
    name: "Italo", // Post data
    years: "20"
    }).then(function(data)
    {
    console.log(data); // Log of server reply
    //this.dati_inviati = true;
    });

    But $_POST["name"] doesn't exist.

    The php file works for sure because I've something like:

    <?php

    if ($_POST["name"])
    {
    echo $_POST["name"];
    }
    else
    {
    echo "Boh";
    }

    ?>

    The response is always "Boh".. why?

    EDIT: I resolved thanks to this: https://laracasts.com/discuss/channels/vue/vue-resource-post-request-no-data

  2. Hey, why you use vue-resource? Author Vue.js Evan You told that vue-resource is deprecated and he recomended axios to use in Vue.js project? Why You don't use axios in this tutorial?

LEAVE A REPLY

Please enter your comment!
Please enter your name here