| | |
Serious problem with attchments-please help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2008
Posts: 154
Reputation:
Solved Threads: 19
You should use the entire code I posted in my last post as datingavenue.php (replace the file). In your form you already have:
That is all that is needed. You already have the variable "Picture" in your form and you can see it in my code as:
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
PHP Syntax (Toggle Plain Text)
<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)
$_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
Suomedia - Dynamic Content Management
•
•
Join Date: Mar 2008
Posts: 26
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2008
Posts: 154
Reputation:
Solved Threads: 19
You have a missing closing curly bracket } in your code.
Matti Ressler
Suomedia
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
Suomedia - Dynamic Content Management
•
•
Join Date: Mar 2008
Posts: 154
Reputation:
Solved Threads: 19
Please use the attachment option (the paper clip) and attach a zip of your files to your next post.
Matti Ressler
Suomedia
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
Suomedia - Dynamic Content Management
•
•
Join Date: Mar 2008
Posts: 154
Reputation:
Solved Threads: 19
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:
Also, you are far better to use a PHP redirect than javascript:
Matti Ressler
Suomedia
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)
$_SERVER['DOCUMENT_ROOT'] . '/uploads/'
Also, you are far better to use a PHP redirect than javascript:
PHP Syntax (Toggle Plain Text)
<?php header("location: success.htm"); ?>
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
Suomedia - Dynamic Content Management
![]() |
Other Threads in the PHP Forum
- Previous Thread: Problem with page navigation
- Next Thread: Form not sending info...
Views: 3759 | Replies: 48
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion redirect regex remote script search select server sessions sms smtp soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube






