Giter Site home page Giter Site logo

ask-wp-plugin's People

Contributors

chrishardie avatar impronunciable avatar jtnelson avatar kgardnr avatar losowsky avatar morganestes avatar mzahir avatar riley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ask-wp-plugin's Issues

having a problem with post an input value from pne page to another

Hi I am new at php and i am still learning i want to take a value of input of qty and pass it to another page but i keep get this error notice undefined index on $_POST['qty'],i read that php funtion isset hepled its hide the error but i still get null qty value either in the same html page ot another php page that i called i want to know that is the wrong in my code :

html code :

Qty
+ -
        <button class="add-to-cart-btn" method="post" type="submit" > 



            <i class="fa fa-shopping-cart" ></i>
            <a class="btn" href="
            <?php
            if (isset($_SESSION['login'])) {
                echo"checkout.php?product_id={$ProductSet['product_id']}&user_id={$ProductSet2['user_id']}";
            } else {
                echo"login_v5/index.php";
            }
            ?>



               "> add to cart</a></button>

    </div>
</div>



<button class="add-to-cart-btn" method="post" type="submit" > 


    <i class="fa fa-shopping-cart" ></i>
    <a class="btn" href="
       "> add to cart</a></button>

php code :

PRODUCT
QTY
TOTAL
1x Product Name Goes Here
$980.00
</div>
<div class="order-col">
    <div>Shiping</div>
    <div><strong>FREE</strong></div>
</div>
<div class="order-col">
    <div><strong>TOTAL</strong></div>
    <div><strong class="order-total">$2940.00</strong></div>
</div>

Use WordPress Coding Standards

Kind of a general issue, but the plugin should follow the established WP Coding Standards, which provides general guidance for style, security, and performance.

Some things that can be addressed fairly quickly for solid gains:

  • Formatting for style
  • Adding inline docs
  • Sanitizing input
  • Escaping output

Add Internationalization (I18N) to text

There's a whole lot of text that's English-only; making it translatable makes it usable for a wider audience.

We should consider finding a way to easily make the text translatable. We could look at using WP's various functions, or by storing the HTML in separate files and (safely) including it at the appropriate time, or some other method I haven't thought of.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.