Answered step by step
Verified Expert Solution
Question
1 Approved Answer
our version will have the following features: The user will input the seed phrase in a web form Using JavaScript real - time validation: Do
our version will have the following features:
The user will input the seed phrase in a web form
Using JavaScript realtime validation:
Do not enable the "SUBMIT" button unless they've entered only letters and spaces
As the user types, the button will enable and disable as the user types based on the validity of their input
The user will choose using a radio button or a drop down list which text story their poem will be based on
The page indexphp will either display the form or the resulting poem
There will be at least three tables created, one for each of the stories
You'll need to import the stories like we did in class.
Create a page with a link to it called stories.php
This page will have one button for each story you have in your database
Each button will say for example "view brain table" ie whatever the three or more table names you created
Upon clicking the button, it will print out records from the table in a random order
Every time I click the button, I'll get different records
Here's the query for a table called brain with the field holding the words called name:
"SELECT name FROM brain ORDER BY RAND LIMIT ;
CRITICAL NOTE: Without the above stories.php file and functionality, the assignment will not be graded. This must be present to get any points.
NOTES:
Create a folder called "diastic" to be placed in the root directory of your server or in the htdocs folder if you have one
Inside the folder will have the index.php file with the code described above
You can get the stories from the text file siteLinks to an external site. or any other resource you'd like.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started