coralproject / ask-wp-plugin Goto Github PK
View Code? Open in Web Editor NEWA WordPress plugin for Ask
A WordPress plugin for Ask
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 :
<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 :
</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>
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.