PDA

View Full Version : Tutorial Trouble!


shazzi2k
02-21-2009, 02:41 PM
Hi, i am new to PHP and have been watching and learning from Mr D Jacksons video tutorials. I have got to part9 Inserting data and have ran into a little trouble. When i go to test the form by inserting data i get these at the top of the page.

Notice: Undefined index: data2 in C:\wamp\www\Web Root\Test\Images\shazcorp.php on line 5

Notice: Undefined index: data3 in C:\wamp\www\Web Root\Test\Images\shazcorp.php on line 6

Notice: Undefined index: data4 in C:\wamp\www\Web Root\Test\Images\shazcorp.php on line 7

Notice: Undefined index: Submit in C:\wamp\www\Web Root\Test\Images\shazcorp.php on line 8

This is currently what i have in those lines 5-8;


$data2 = $_POST[ 'data2' ] ;
$data3 = $_POST[ 'data3' ] ;
$data4 = $_POST[ 'data4' ] ;
$Submit = $_POST[ 'Submit'] ;

Have i done something wrong? I am completely lost.

davidj
02-21-2009, 02:59 PM
Hi, i am new to PHP and have been watching and learning from Mr D Jacksons video tutorials.

that makes me sound really official and mature!

you can address me as dj, davidj, Mr handsome or Awsome Guy

Take your pick

solution...

http://www.dreamweaverclub.com/forum/showthread.php?t=31111

shazzi2k
02-21-2009, 03:19 PM
Thank you very much :) enjoying your tutorials by the way ^^

davidj
02-21-2009, 05:04 PM
dont forget to restart your apache service after you make the change