Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving the Tournament and searching the url updated tournament #200

Open
ghelge opened this issue May 22, 2023 · 0 comments
Open

Saving the Tournament and searching the url updated tournament #200

ghelge opened this issue May 22, 2023 · 0 comments

Comments

@ghelge
Copy link

ghelge commented May 22, 2023

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.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant