Jump to content
Killersites Community

All Activity

This stream auto-updates     

  1. Yesterday
  2. makamo66

    Undefined index error

    How do I get my session to be unset? My form looks like this: foreach ($joined as $i => $qty){ echo "<form action='' method='get' name='yourForm'>"; echo "<button type='submit' name='remove_" . $i . "' value='remove_" . $i . "' class='deletebtn' >X</button>"; echo "</form>"; } My SESSION is defined like this: for($i=0; $i<=5; $i++){ if (isset($_REQUEST["element_id_$i"]) ) { $_SESSION["element_id_$i"] = $_REQUEST["element_id_$i"]; $id = $_SESSION["element_id_$i"]; array_push($_SESSION["element_id"],$id); } $id = $_SESSION["element_id"]; } and the form submits to: if (isset($_REQUEST["remove_$i"]) ){ unset($_SESSION["quantity[$i]"]); unset($_SESSION["element_id[$i]"]); var_dump($_SESSION["element_id"]); var_dump($_SESSION["quantity"]); echo "Received variable " . $_REQUEST["remove_$i"]; echo 'TARGET INDEX TO BE REMOVED: ' . $_SESSION["element_id[$i]"] . '<br><br>'; } The output is: array(1) { [0]=> string(1) "1" } array(1) { [0]=> string(1) "1" } Received variable remove_1 Notice: Undefined index: element_id[1] in C:\xampp\htdocs\TopView\cart5.php on line 147 TARGET INDEX TO BE REMOVED:
  3. administrator

    PHP Login Using OOP and MVC

    Hi, Sorry for the delay. You need to PHP code when the form submission is successful.
  4. makamo66

    Simple Form Submission Doesn't Work

    When I remove exit it still doesn't work.
  5. The file test2.php consists of these simple forms: <?php for($i=0; $i<=5; $i++){ echo "<form action='reset4.php' method='get' name='yourForm'>"; echo "<button type='submit' value='delete' name='remove_" . $i . "' class='deletebtn'>X</button>"; echo "</form>"; } ?> It submits to reset4.php which is this simple code: <?php header("Location: test2.php"); exit; for($i=0; $i<=5; $i++){ if (isset($_REQUEST["remove_$i"])){ echo "Deleted"; }} ?> But it doesn't work. The $_REQUEST doesn't populate the address field and it apparently never gets submitted to reset4.php like it should. This is such a simple program, I can't imagine why it doesn't work.
  6. Last week
  7. What's this dude you have only Asked a Question and you are giving multiple answers, this is very rude dude it's against forums community guidelines.
  8. alexlaxton

    Books for programming

    Here I am sharing some of the Best books to learn and code. 1. Eloquent JavaScript: A Modern Introduction to Programming by Marijn Haverbeke. 2. Programming Pearls by Jon Bentley. 3. Learning Python: Powerful Object-Oriented Programming. 4. The Upside of Stress- Kelly McGonigal. 5. The Complete Software Developer's Career Guide by John Some
  9. alexlaxton

    How Do You Programmers Type?

    An average professional typist reaches 50 to 70wpm. As long as you can type faster than you can solve software problems, you will be fine as a programmer. 40+ words per minute are adequate to make sure typing doesn't hinder your thoughts. We will Rarely get this much speed from any programmer because this type of speed only has on Expert's hand.
  10. Pegglind83

    Your favorite book?

    Hey, guys. What is your favorite / last read book? Let's discuss.
  11. alexlaxton

    Suggestions for a contact form?

    Use Contact Form 7 for the Wordpress site. As you know it will more helpful for Wordpress users to make the Signup page Login page or Contact us page. You may also choose to include a business address, phone number, or specific employee/department contact information. Form submission. This is the message that is sent to your email address and recipients when somebody fills out your form. By default, the recipient is the email address used for creating the account. You can change it or create multiple and custom notifications in Settings → Notifications → Form Owner Options.
  12. alexlaxton

    Wordpress or Static HTML Sites?

    While WordPress lets you access all the underlying code to your site, a static HTML website will make it a bit simpler to input certain types of markup. But I personally prefer Wordpress site.
  13. alexlaxton

    PHP Web

    There are Many Company but if you have to found the Exact Affordable and Liable company then you have to go through their Linkedin page, because it will show their original reputation and information about what they are and where they are.
  14. In Organic reach, you don't have to target audience, age group & demographic location. On the other hand, in the paid promotion you can choose how much price you want to spend on advertisement and for how many days you want to show your advertisement. In the paid advertisement, you can choose your targeting audience, country and age group.
  15. alexlaxton

    YouTube 500 Internal Server Error

    Sometimes I get same error but either I restart my browser, clear website cache or clear browser history and Temp files so it will load quickly.
  16. alexlaxton

    Custom Menu in Wordpress , Help :)

    Hey, @administrator please help this guy he/she needs help for Wordpress custom menu, @neliuz don't worry our admin has an enormous knowledge on WordPress he will help you out from this issue.
  17. alexlaxton

    New Python Course For College And High School Students

    Thank you so much admin for this useful course, I am eager to know and learn Powerful Python 3 which you made on studio web.
  18. Domagoj

    PHP Login Using OOP and MVC

    Hi, im new to the forum and have issue with my login application. After I enter valid username and password and click submit i get redirected to login.php instead of members.php and get the following screen. What can I do?
  19. Jodess

    Writing help

    Thanks for the help, friends.
  20. First, you have to make a Perfect Time Table for both because Once you have done with a theory you have to also spend time on Practical, so make a proper plan for learning both languages simultaneously.
  21. alexlaxton

    I need help with a blog page

    Just add Space before </td> it will not overlap with other images. I hope you could get a solution.
  22. alexlaxton

    How to change font color in Sublime Text

    Open "Color Scheme - Default.sublime-package" Choose the color scheme which is closest to your requirements and copy it. From Sublime Text choose Preferences - Browse Packages - User. Paste the color scheme you copied earlier here and rename it. There is also a simple method to solve the issue.
  23. Yes, admin, you are right sometimes there might be an issue on configuration not in our code but when you don't get a code, you have to take help from google because Google has a solution for every problem.
  24. alexlaxton

    Starting a Web Design Business?

    Website design business also seems to be a great profitable because there are many Companies they are upgrading their Design as per today's scenario. You must know the Importance of making a successful E-commerce website design, compare to the development business if you focus more on Designing business you will gain more profits.
  25. alexlaxton

    Freelancing panic - help on finding work

    Dude for Finding work on Freelancing there are many Free work providers where you will get to know and feel safe for work. For doing Freelancing there are many areas where you could work on such as Upwork, Fever, Freelancing, etc
  26. That's wonderful to hear because Python is very helpful in Machine programming languages like Robotics or any other Industrial material. So Python can be the Most popular coding language in the upcoming generation.
  27. alexlaxton

    How can I change the session time out with StuidoWeb?

    You can change Session time out by updating the new Webstudio setting, you can get this by Search engine help.
  1. Load more activity