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

27
c159Jan2616.notebook 1 January 26, 2016

Upload: others

Post on 27-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

1

January 26, 2016

Page 2: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

2

January 26, 2016

Page 3: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

3

January 26, 2016

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

Page 4: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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.

Page 5: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

5

January 26, 2016

Page 6: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

6

January 26, 2016

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

Page 7: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

7

January 26, 2016

Making the address a little clearer.

Page 8: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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.

Page 9: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

9

January 26, 2016

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

Page 10: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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.

Page 11: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

11

January 26, 2016

Here is the PHP.

Page 12: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

12

January 26, 2016

The PHP is going to have errors.

Page 13: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

13

January 26, 2016

Page 14: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

14

January 26, 2016

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

Page 15: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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.

Page 16: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

16

January 26, 2016

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

Page 17: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

17

January 26, 2016

Another variation

Page 18: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

18

January 26, 2016

Page 19: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

19

January 26, 2016

Page 20: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

20

January 26, 2016

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

Page 21: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

21

January 26, 2016

Starting Second Group PHP with a more complex form.

Page 22: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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

Page 23: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

23

January 26, 2016

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

Page 24: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

24

January 26, 2016

Page 25: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

25

January 26, 2016

This is what the PHP generated.

Page 26: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

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.

Page 27: c159Jan2616.notebook January 26, 2016cisweb.bristolcc.edu/~pgrocer/audio_smartboardS16/... · c159Jan2616.notebook 8 January 26, 2016 This is the PHP and I am getting the stuname

c159Jan2616.notebook

27

January 26, 2016