c159jan2616.notebook january 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboards16/... ·...

Post on 27-Jul-2020

0 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

c159Jan2616.notebook

1

January 26, 2016

c159Jan2616.notebook

2

January 26, 2016

c159Jan2616.notebook

3

January 26, 2016

We will finish First Group PHP and start Second Group PHP.

c159Jan2616.notebook

4

January 26, 2016

Setting up a form. When the submit button is clicked that the action will go to formuseget.php and send the data using the post method.

c159Jan2616.notebook

5

January 26, 2016

c159Jan2616.notebook

6

January 26, 2016

This is the output from the formuseget.php that the data was passed to.

c159Jan2616.notebook

7

January 26, 2016

Making the address a little clearer.

c159Jan2616.notebook

8

January 26, 2016

This is the PHP and I am getting the stuname and grade that were sent when submit was clicked.  I am storing them in the PHP variables $stuname and $grade.  Then I am echoing them out within an h3 and I am putting the <h3>, the literal describing the field and the contents of the variable all within quotes ­ and that works in PHP.

Notice the data showing up on the address.

c159Jan2616.notebook

9

January 26, 2016

I am doing the same thing but I am using the post method.

c159Jan2616.notebook

10

January 26, 2016

Note that the data does not show on the address line with post the way it does with get.

c159Jan2616.notebook

11

January 26, 2016

Here is the PHP.

c159Jan2616.notebook

12

January 26, 2016

The PHP is going to have errors.

c159Jan2616.notebook

13

January 26, 2016

c159Jan2616.notebook

14

January 26, 2016

The missing >" caused a fatal error ­ this tries but cannot generate the name.

c159Jan2616.notebook

15

January 26, 2016

Look at the variety of ways that work ­ the one that does not work is the single quote containing <br>, the literal and aksing for the content of $school. Instead it gets the literal $school instead of the content or value.

c159Jan2616.notebook

16

January 26, 2016

The PHP is within a <div> andthe style applies to the <div> so italso applies to the PHP.

c159Jan2616.notebook

17

January 26, 2016

Another variation

c159Jan2616.notebook

18

January 26, 2016

c159Jan2616.notebook

19

January 26, 2016

c159Jan2616.notebook

20

January 26, 2016

Someone asked about PHP on theirlocalhost and I pointed them to thissite.

c159Jan2616.notebook

21

January 26, 2016

Starting Second Group PHP with a more complex form.

c159Jan2616.notebook

22

January 26, 2016

size = 4 on noun means it shows 4Verb is the default of showing oneColor shows all 7Clause is a radio button

c159Jan2616.notebook

23

January 26, 2016

When I click the button it will loadmysentence.php using the post method to send the collected data.

c159Jan2616.notebook

24

January 26, 2016

c159Jan2616.notebook

25

January 26, 2016

This is what the PHP generated.

c159Jan2616.notebook

26

January 26, 2016

Here is the PHP ­ the data came over with the post method and was assigned to the variables.$myStyle gets INFO which is the style that I want touse.  This uses a heredoc to hold the chunk of style.Note that the close has to be against the left wall.

c159Jan2616.notebook

27

January 26, 2016

top related