Link works on Gmail not on Yahoo/Indiatimes Programming Web Development by abhi10kumar …;br>The Coupon Code is : <strong>$rowcode[couponcode]</strong> of the Mobile <strong>$rowcode…'].", Thanks for visting our site. The code is : $rowcode[couponcode]"; $status='0'; if(mail($_POST["email"], $subject… Jquery php file is not showing session variable Programming Web Development by abhi10kumar I am using Jquery Popup-Form to send coupon code (which came from database) on email and through SMS. I am using to store couponcode in a session; but the page called by Jquery is not showing the value of session, I wrote session_start() at the top on both pages, still no luck. Need help on replacing url parameter Programming Web Development by prash21m …'];?>" data-clipboard-text="<?php echo $couponvalue['couponcode'];?>" class="copyCoupon">GET COUPON CODE… Re: Drop MySQL table in a PHP program Programming Web Development by tiggsy …mysql_real_escape_string($allcoupons[$j1]['ShortName']); $allcoupons[$j1]['CouponCode'] = mysql_real_escape_string($allcoupons[$j1]['CouponCode']); echo "<br />original…[$j]['CouponName']}', '{$allcoupons[$j]['ShortName']}', '{$allcoupons[$j]['CouponCode']}', '{$allcoupons[$j]['CouponUrl']}', '{$allcoupons[$j]['ImageUrl']}', '{$… Re: MySQL Db is not updating from html form with php script Programming Web Development by Stefano Mtangoo …Do something like this [CODE=PHP]if(empty($_GET['couponcode'])) echo "<h2>The request is …invalid</h2>"; else $coupon_code = ($_GET['couponcode']); [/CODE] [CODE=html] <input type="text&…quot; name="couponcode" disabled value="<? print_r ($coupon_code); ?>&… Re: MySQL Db is not updating from html form with php script Programming Web Development by observ …quot;> <input type="text" name="couponcode" disabled value="<? print_r ($coupon_code); ?>&…ok = mysql_select_db($database, $con); if(isset($_POST['usecode'])) { $submit = $_POST['couponcode']; $sql = " UPDATE coupons SET coupon_used= '0' WHERE coupon_code = '$… Re: MySQL Db is not updating from html form with php script Programming Web Development by ko ko ….php. [QUOTE]<input type="text" name="couponcode" disabled value="<? print_r ($coupon_code); ?>">… with: [code] <input type="text" name="couponcode" disabled value="<?php echo $coupon_code; ?>"… Re: MySQL Db is not updating from html form with php script Programming Web Development by Stefano Mtangoo … doing it wrong: [CODE] if(isset($_POST['usecode'])) { $submit = $_POST['couponcode']; $sql = " UPDATE coupons SET coupon_used= '0' WHERE coupon_code = '$submit…;<br />"; if(isset($_POST['usecode'])) { $submit = $_POST['couponcode']; $sql = " UPDATE coupons SET coupon_used= '0' WHERE coupon_code = '$submit… Re: MySQL Db is not updating from html form with php script Programming Web Development by observ …"> <input type="text" name="couponcode" disabled value="<? print_r ($coupon_code); ?>">…;<br />"; if(isset($_POST['usecode'])) { $submit = $_POST['couponcode']; $sql = " UPDATE coupons SET coupon_used= '0' WHERE coupon_code = '$submit… Re: MySQL Db is not updating from html form with php script Programming Web Development by observ … doing it wrong: [CODE] if(isset($_POST['usecode'])) { $submit = $_POST['couponcode']; $sql = " UPDATE coupons SET coupon_used= '0' WHERE coupon_code = '$submit… Re: MySQL Db is not updating from html form with php script Programming Web Development by observ [CODE]<form name="forma1" method="post" action="insert.php"> <input type="text" name="couponcode" disabled value="<?php echo $coupon_code; ?>"> <input type="submit" name="usecode" value="Use Coupon"> </form>[/CODE] Re: MySQL Db is not updating from html form with php script Programming Web Development by observ [QUOTE=evstevemd;1603576]tried my suggestion?[/QUOTE] Yes, i get request is invalid and the coupon code doesn't transfer in the text box anymore. I have[CODE] <input type="text" name="couponcode" disabled value="<?php echo $coupon_code; ?>">[/CODE] should i switch it back to print_r ? Re: Multiple coupons creating. Programming Web Development by mangel.murti … coupons is created and store to below table. coupon_id , couponname , couponcode, precentageoff, startdate , enddate,apply_to below is table Where all themes… Re: Places to learn C# Programming Software Development by abhiT123 I suggest you must try https://www.udemy.com/learn-c-sharp-from-scratch/?couponCode=learn15 This course will provide you a good training on C#. It has 96 chapters, even if you are begineer in C# this will be best course to learn. Try it. Re: Jquery php file is not showing session variable Programming Web Development by aquilax Try with the following example: [CODE]<?php session_start(); if ($_GET['get']){ echo "resp:".$_SESSION['v']; die(); } $_SESSION['v'] = 'SECRET CODE'; ?> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <… Re: Need help on replacing url parameter Programming Web Development by diafol From: http://css-tricks.com/snippets/javascript/get-url-variables/ Based on that, you could try this - apologies for spaghetti code, but very late here: <script> function setQueryVariable(variable,varValue,fullURL) { var query = window.location.search.substring(1).trim(); var used = false… Re: Need help on replacing url parameter Programming Web Development by Taywin Depends... If you know the exact format, you could simply use `replace()` function. var newLoc = window.location.href.replace(/\?code=\d+/i, "").replace(/\&code=\d+/i, ""); The above means the location with either `?code=####` or `&code=####` will be removed from the URL. However, this is for exact format & …