Skip to content

Saving the Tournament and searching the url updated tournament #200

@ghelge

Description

@ghelge

Hello, I am struggling on creating a save data bracket and searching about the generated bracket can you help me I have created a url and the id of the tournament but I am struggling to save the tournament bracket

if (saveData) {
console.log(saveData);

  // Encode the saveData as a URI component
  var encodedSaveData = encodeURIComponent(JSON.stringify(saveData));

  // Redirect to generatebracket.php with the encoded saveData in the URL
  window.location.href = "generatebracket.php?id=" + <?php echo $tournament_id; ?> + "&data=" + encodedSaveData;
} else {
  console.log("saveData is not defined or is null.");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions