Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
Cómo configurar la variable js en php y guardarla en la base de datos

Creo una nueva variable y el siguiente código es agregar valor a esta variable. Este código tiene carga (en funcionamiento) y no funciona. Intento arreglar la búsqueda en Google y no sé.

 <?php session_start(); ?> <script type="text/javascript"> var drzewo = 0; var ustdrzewo = 1; /* LOAD */ function wczytaj() { drzewo = <?php echo $_SESSION['drewno']; ?>; ustdrzewo = <?php echo $_SESSION['ustdrzewo']; ?>; document.getElementById("drzewo").innerHTML = drzewo; document.getElementById("ustdrzewo").innerHTML = ustdrzewo; } /* SAVE */ function zapisz() { <?php $_SESSION['drewno'] = "<script type='text/javascript'> document.getElementById('drzewo').innerHTML = drzewo; </script>" ?> window.location.href = "zapis.php" } function addwood() { drzewo +=ustdrzewo document.getElementById("drzewo").innerHTML = drzewo; }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

<script type="text/javascript"> //include jquery $.post( "other.php", { drewno: drzewo } ); </script>

otro.php

 <?php $_SESSION['drewno'] = $_POST["drewno"]; ?>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!