O'Reilly Forums: Ch 5 - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ch 5

#1 User is offline   row248 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 17-December 12

Posted 17 December 2012 - 08:41 AM

Hi guys! I have problem with "screenshot". It's error : Notice: Undefined index: screenshot in Z:\home\omg.com\www\addscore.php on line 15 .

Look at my code please. http://pastebin.com/92XM107u
0

#2 User is offline   drewdin 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 589
  • Joined: 11-February 10
  • Gender:Male
  • Location:Boston

Posted 17 December 2012 - 10:26 AM

Change these, the value attribute is not a tag. remove the "<"

change
<input type="text" id="name" name="name" <value="<?php if ( !empty($name) ) echo $name; ?>" />


to
<input type="text" id="name" name="name" value="<?php if ( !empty($name) ) echo $name; ?>" />


Also, you fat fingered something important.

<form enctype="myltipart/form-data" method="post" action "<?php echo $_SERVER['PHP_SELF']; ?>">


should be

<form enctype="multipart/form-data" method="post" action "<?php echo $_SERVER['PHP_SELF']; ?>">

0

#3 User is offline   row248 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 17-December 12

Posted 18 December 2012 - 05:41 AM

Oh...
I again have problem
This is my index.php http://pastebin.com/Sctj84i2
And this is my addscore.php http://pastebin.com/zL8aFs8K

My pictures is not visible.
Attached Image: Безымянный.png

This post has been edited by row248: 18 December 2012 - 05:42 AM

0

#4 User is offline   drewdin 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 589
  • Joined: 11-February 10
  • Gender:Male
  • Location:Boston

Posted 20 December 2012 - 05:58 AM

is the picture visible anywhere, does the picture get moved to the correct location, do you have that location setup properly? I wont do all the work here, you have to understand whats going on so you can fix it too.
0

#5 User is offline   row248 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 17-December 12

Posted 24 December 2012 - 03:44 PM

I update define('GW_UPLOADPATH', 'Z:\home\omg.com\images\\');
And check image link with google chrome. What me do?Attached Image: Безымянный.png
0

#6 User is offline   drewdin 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 589
  • Joined: 11-February 10
  • Gender:Male
  • Location:Boston

Posted 27 December 2012 - 12:25 PM

This does not seem correct to me:

 'Z:\home\omg.com\images\\'


Try using the relative link, are you on windows or MAC?

'images/'


As long as there is an images folder in your root.
0

#7 User is offline   row248 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 17-December 12

Posted 27 December 2012 - 12:48 PM

View Postdrewdin, on 27 December 2012 - 12:25 PM, said:

This does not seem correct to me:

 'Z:\home\omg.com\images\\'


Try using the relative link, are you on windows or MAC?

'images/'


As long as there is an images folder in your root.


Not work :(
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users