How do I write a programming code that says either “I admire you, I respect you, I value you, I want you” at random if one enters “yes” to the question “Are you [person 1 name], [person 2 name]’s boyfriend?” and will give an error if they enter “no” forcing them to enter “yes” in a loop in PHP?
there’s a list of topics to read:
- https://www.php.net/manual/en/tutorial.forms.php
- https://www.php.net/manual/en/language.types.array.php
- https://www.php.net/manual/en/function.shuffle.php
- https://www.php.net/manual/en/function.echo
use extensive debugging on your variables: