Monday, 12 December 2016

(Year 3 Sem C) Week 5 Prototype Preparation (Part 5)

Today,  I decided to start working on the database. Before that, I decided to refresh my memory by testing and debugging for  PHP and XML sheet. From my memory, I still remember that an XML sheet will need to create out if need to test for PHP. Therefore, I am watching tutorial from Youtube video on how to apply XML data in PHP.












First, I am creating the database by using notepad. After saved the file, I open it at Adobe Dreamweaver and it turns as a data as below:










After that, I try to apply the XML sheet to the PHP form as below:

<form action="Script/testingphp.php" method="post" name="Contact_Form">
  <p>Name:
  <input name="Name" type="text" />
  </p>
  <p>Age:
  <input name="Age" type="text" />
  </p>
  <p>Message:
    <textarea name="Message"></textarea></p>
  <p><input name="Submit" type="submit" value="Submit" /></p>
  <p><input name="Reset" type="reset" value="Reset" /></p>
</form>

The form action will be the one that calls out the script. Besides, I also create out the contact form to make some testing for the XML sheet. But, it seems this way not really work because the PHP data don't show out. Therefore, I decided to install XAMPP and make a testing for the PHP data. 

Unfortunately, XAMPP is failed to function on my computer. An error has occurred as below:












Something is missing and XAMPP is unable to provide its function properly. 

Leaving this problem aside, I decided to continue working on the prototype that I need to be done. 


Reference Link:
YouTube. (2016). How to insert xml into html in dream weaver. [online] Available at: https://www.youtube.com/watch?v=8KtBzEi8qRE&t=134s [Accessed 12 Dec. 2016].

YouTube. (2016). How to Make a HTML Contact Form with PHP. [online] Available at: https://www.youtube.com/watch?v=Jb7dehE9DqI&t=2s [Accessed 12 Dec. 2016].


YouTube. (2016). PHP Contact Form and Form Validation | Dreamweaver Tutorial - 1 of 2. [online] Available at: https://www.youtube.com/watch?v=fBfXQqDcNSk [Accessed 12 Dec. 2017].


No comments:

Post a Comment