Note that there are some explanatory texts on larger screens.

plurals
  1. USdevfunkd
    primarykey
    data
    text
    plurals
    1. COEscape the " characters in the URL. The joys of pseudo code :) if ($editmodeison) print("<td class='content' align='center'><input type=\"button\" name=\"edit[$k]\" onclick='window.location.href=\"http://localhost/page2.php\"value=\"$score" . ( !empty( $row[$k] )?htmlspecialchars( $row[$k] ) : htmlspecialchars( '' ) ) . "\" /></td>\n"); Also if you're trying to send $score value to page 2, you need to pass it as a query parameter.
      singulars
    2. COAs the previous person mentioned, please make your question more concise. Looking at what you're attempting to do I would recommend using jquery over trying to print the button. But if you want an answer to the first part of your question(s)... Use the onClick method and change your input type from "text" to "button" (Pseudo Code) ` print( "<td class='content' align='center'><input type=\"button\"name=\"edit[$k]\" value=\"" . ( !empty( $row[$k] )?htmlspecialchars( $row[$k] ) : htmlspecialchars( '' ) ) . "\" onClick="window.open('[INSERT URL TO PHP PAGE]')" /></td>\n" ); `
      singulars
    3. COThe same poster goes on later to say they have 2 rows - "Hi ! i'm trying to get all row from database to fill $_SESSION['Panier'] as there is 2 row but only fill the first" regardless this question is lacking alot of information and it's becoming a complete waste of time. I apologize again for frustrating you...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload