In a certain website project, a couple of features must be modified and developed using the following languages: HTML, PHP, MySQL, JavaScript (optional) e CSS (optional). Here are the steps and requirements to be followed:
- On the site's navbar, the contents of the "Home" button must be changed to "Início" and a new button must be created to redirect the user to a new page ("formulario.html").
- On the new page, a form must be created to insert a new idea for a character of the third season of The Boys. The form must contain the following fields: character's name, age, possible actors/actresses, alignment* and biography. *Alignment must contain the options "The boys" or "Supes".
- Develop the form's logic and make so the data is received by the back-end (in PHP). On top of that, assure that the data persists (save the data) in the MySQL database.
- Show all character data saved on the "lista.html" page.
- On the data showcase, print the "The Boys" characters names in blue and the "Supes" in red.
Requirements: XAMPP 5.6.11; Supportive tools: "Personagem.sql" e "SQLDrive.sql" classes contained in "\novo-desafio-pr-tico\backend_php\classes" directory.
Em um certo projeto de website, algumas funções devem ser modificadas e desenvolvidas utilizando as seguintes linguagens: HTML, PHP, MySQL, JavaScript (opcional) e CSS (opcional). Segue os passos e requerimentos a serem seguidos:
- No menu principal do site, deve ser alterado o conteúdo do botão “Home” para “Início” e criado um novo botão que irá redirecionar para uma nova página (“formulario.html”).
- Na nova página, criar um formulário para inserir uma ideia para o novo personagem da terceira temporada de The Boys. O formulário deve conter os seguintes campos: nome do personagem, idade, possíveis atores/atrizes, alinhamento* e biografia. *Alinhamento deve conter as opções “The boys” ou “Supes”.
- Adicionar lógica ao formulário e fazer com que as informações sejam recebidas pelo back-end (em PHP). Além disso, persistir (salvar as informações) no banco de dados MySQL.
- Exibir todas as informações dos personagens na tela em “lista.html”.
- Na exibição de informações, exibir o nome dos personagens “The Boys” em azul e o nome dos personagens “Supes” em vermelho.
Requerimentos: XAMPP 5.6.11; Ferramentas de suporte: As classes "Personagem.sql" e "SQLDrive.sql" contidas no diretório "\novo-desafio-pr-tico\backend_php\classes".