Serious problem with attchments-please help

Reply

Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #21
Mar 27th, 2008
You should use the entire code I posted in my last post as datingavenue.php (replace the file). In your form you already have:

  1. <form method="POST" action="datingavenue.php"

That is all that is needed. You already have the variable "Picture" in your form and you can see it in my code as:

  1. $_FILES['Picture']['name']

Please make adjustment to your new datingavenue.php where I indicated above (you must have the correct file system path to your images upload directory and its permissions need to be set to 777 - writable).


Matti Ressler
Suomedia
Last edited by Suomedia; Mar 27th, 2008 at 1:22 pm.
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #22
Mar 31st, 2008
i published the site again with the new script but i get an error message that displays as follows

Parse error: syntax error, unexpected $end in /usr/home/conti634/public_html//Dating 20Avenue/Dating 20Avenue 20sign 20up.htm on line 156

I also applied the the same attachment to my other scripts and also experience the same problem.
what could be the problem
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #23
Mar 31st, 2008
You have a missing closing curly bracket } in your code.


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3,761
Reputation: nav33n is a jewel in the rough nav33n is a jewel in the rough nav33n is a jewel in the rough 
Solved Threads: 332
Moderator
Featured Poster
nav33n's Avatar
nav33n nav33n is offline Offline
Senior Poster

Re: Serious problem with attchments-please help

 
0
  #24
Mar 31st, 2008
Indent your code, find an unclosed brace { and close it.
Ignorance is definitely not bliss!

*PM asking for help will be ignored*
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #25
Mar 31st, 2008
Okay. Which means i cancel the ?> at the end because thats what gives the error even when i copy the script you ultered for me ( thanks again for that ). Will the script still function if i don't end with ?>
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #26
Apr 1st, 2008
I closed all the brackets but still have the same problem ( it says unexpected end once again ) what could be the problem. PLEASE HELP
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #27
Apr 1st, 2008
Please use the attachment option (the paper clip) and attach a zip of your files to your next post.


Matti Ressler
Suomedia
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #28
Apr 2nd, 2008
hey there. i have attached the files in a zip folder called php files. Hope you can pick up my mistakes
Attached Files
File Type: zip php files.zip (6.7 KB, 4 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 154
Reputation: Suomedia is an unknown quantity at this point 
Solved Threads: 19
Suomedia Suomedia is offline Offline
Junior Poster

Re: Serious problem with attchments-please help

 
0
  #29
Apr 2nd, 2008
In each of the files that have the error (3 in the attachment) add a closing curly bracket } before the very last ?> in each file.

With your $path variable, it MUST be a full file system path, eg. /home/suomedia/public_html/upload/ or use:

  1. $_SERVER['DOCUMENT_ROOT'] . '/uploads/'

Also, you are far better to use a PHP redirect than javascript:

  1. <?php
  2. header("location: success.htm");
  3. ?>


Matti Ressler
Suomedia
Last edited by Suomedia; Apr 2nd, 2008 at 4:53 pm.
If you want your dreams to come true, the first thing you must do is to wake up....
Suomedia - Dynamic Content Management
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 26
Reputation: Vity is an unknown quantity at this point 
Solved Threads: 0
Vity Vity is offline Offline
Light Poster

Re: Serious problem with attchments-please help

 
0
  #30
Apr 2nd, 2008
The full file system is the way the folders are structured in the site ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum


Views: 3759 | Replies: 48
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC