Posts by valkyrieQNTUM • 187 points
5 posts
-
3
votes1
answer165
viewsQ: Should I create a class for each "input", or are only methods of a "form" class enough?
Well, I’m having a logical question. I started learning PHP OO recently, so this question is more for educational purposes than anything else. My goal is to create a class "form" that will build…
-
5
votes4
answers1147
viewsQ: Mark checkbox if user writes input text in a table
I need it when the user writes to an input text, the checkbox of the respective table row should be marked, and if the user leaves the input text blank again, checkbox is cleared. Follow code:…
-
3
votes1
answer1370
viewsQ: Get value from a <table> Row if checkbox is checked
I have the following table which is built from a database entity. HTML: <table class="table table-hover" id="produtostab"> <thead> <tr> <th>Descrição</th>…
-
2
votes2
answers227
viewsQ: Traverse Array within a string
I’m creating a system that saves text and variables inside a file. txt and need to add inside this file the results of an array as well. Code: $produtoImpressao = $_SESSION['produtoImpressao'];…
-
4
votes1
answer1007
viewsQ: Pass Javascript variable to PHP body
I’ll try to get as much detail as I can about my problem. I have an HTML select that pulls your options directly from the database, as per the code below: $conn = new mysqli('localhost', 'root', '',…