So what I want to do is have one repl where you fill out the information and when you press solve it opens up a new repl in a new tab with all of the information filled out. How will I be able to do this where they share the same database and variables.
I don't know about the
database thing on
Repl but this is what you may do:
This example has
<form action='PHP LINK' method='post'> <input type='text' name='user' required> <input type='email' name='email' required> <input type='submit'> </form>
<?php $user = $_POST['user']; $email = $_POST['email']; $msg = "Your Username Is: ".$user."<br><br>"."Your Email Is: ".$email; echo $msg; ?>
Don't forget to put the
HTML in an
HTML Repl and the
PHP code in a
PHP Web Server Repl... Like with the
HTML repl, how you open up the website in the new tab, do it with the
PHP Repl, and copy the
URL... Then take away
PHP LINK from the form
action and replace it with the
URL you copied.
When you submit the form it should tell you what you submitted.
I suggest you find a PHP tutorial and learn from there. PHP is for form processing but it can do so much more! Learn it!
Let me know if something goes wrong!
P.S. When you are copying and pasting the
PHP code to the Repl, take away the
?>, and whatever it has between it!
P.P.S If you don't want to learn
PHP or use it, I can show you an example of how to do this in
An idea: Simply make all the solving parts a whole div, and make all the filled out information another div. then in the JS, you can hide the first div and show the second.