Jump to content

phpnubb

New Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by phpnubb

  1. if i post previous pages form where it is submitting the services can you please help to convert it to a session variable and resolve my issues? i cant figure this out
  2. as i stated, service was generated from previous pages form. its a posted variable from previous page.
  3. this is line 88-112 Line 91 is $aService = $_POST['service']; <?PHP $aService = $_POST['service']; $N = count($aService); for($i=0; $i < $N; $i++) { $services=MYSQLI_QUERY($con, "SELECT * FROM `Service` WHERE Service_ID = '$aService[$i]'")or die(mysqli_error($con)); $getservices = mysqli_fetch_array($services); $serviceid = $getservices['Service_ID']; $servicedesc = $getservices['Service_Type']; $serviceprice = $getservices['Service_Cost']; echo'<tr> <td><input type="text" name="service" value="'. $servicedesc. '"></td> <td><input type="text" name="price" id="price'.$i.'" value="'. $serviceprice. '"></td> <td><input type="text" class="qty" value="'. $serviceprice. '"></td> </tr>'; } ?>
  4. http://imgur.com/a/lhijs go there to see image captures of whats happening
  5. half the current page goes away.... line 91 reads the posted services array from previous page. its not posting when page is reloaded to apply coupon code.
  6. Trying to create a page that displays a form thats already populated from previous page. Now im trying to add an additional element into the already populated form, a coupon code. When I do this i lose all services and half my website disappears. Notice: Undefined index: service in /home/ on Line 91 line 91 is how i generated my services from previous page. here is my code: http://pastebin.com/NEeqpgxT what i want to figure out currently is why my page is disappearing and why its losing services.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.