943,813 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 4241
  • PHP RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Mar 27th, 2008
0

Re: Serious problem with attchments-please help

You should use the entire code I posted in my last post as datingavenue.php (replace the file). In your form you already have:

PHP Syntax (Toggle Plain Text)
  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:

PHP Syntax (Toggle Plain Text)
  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.
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Mar 31st, 2008
0

Re: Serious problem with attchments-please help

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
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Mar 31st, 2008
0

Re: Serious problem with attchments-please help

You have a missing closing curly bracket } in your code.


Matti Ressler
Suomedia
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Mar 31st, 2008
0

Re: Serious problem with attchments-please help

Indent your code, find an unclosed brace { and close it.
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Mar 31st, 2008
0

Re: Serious problem with attchments-please help

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 ?>
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Apr 1st, 2008
0

Re: Serious problem with attchments-please help

I closed all the brackets but still have the same problem ( it says unexpected end once again ) what could be the problem. PLEASE HELP
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Apr 1st, 2008
0

Re: Serious problem with attchments-please help

Please use the attachment option (the paper clip) and attach a zip of your files to your next post.


Matti Ressler
Suomedia
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Apr 2nd, 2008
0

Re: Serious problem with attchments-please help

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, 5 views)
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008
Apr 2nd, 2008
0

Re: Serious problem with attchments-please help

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:

PHP Syntax (Toggle Plain Text)
  1. $_SERVER['DOCUMENT_ROOT'] . '/uploads/'

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

PHP Syntax (Toggle Plain Text)
  1. <?php
  2. header("location: success.htm");
  3. ?>


Matti Ressler
Suomedia
Last edited by Suomedia; Apr 2nd, 2008 at 4:53 pm.
Reputation Points: 15
Solved Threads: 19
Junior Poster
Suomedia is offline Offline
154 posts
since Mar 2008
Apr 2nd, 2008
0

Re: Serious problem with attchments-please help

The full file system is the way the folders are structured in the site ?
Reputation Points: 10
Solved Threads: 0
Light Poster
Vity is offline Offline
26 posts
since Mar 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Problem with page navigation
Next Thread in PHP Forum Timeline: Form not sending info...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC