•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,203 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,227 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2134 | Replies: 48
![]() |
•
•
Join Date: Mar 2008
Posts: 153
Reputation:
Rep Power: 1
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
<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:
$_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 12: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:
Rep Power: 1
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: 153
Reputation:
Rep Power: 1
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: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 240
Indent your code, find an unclosed brace { and close it.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Mar 2008
Posts: 153
Reputation:
Rep Power: 1
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: 153
Reputation:
Rep Power: 1
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:
$_SERVER['DOCUMENT_ROOT'] . '/uploads/'
Also, you are far better to use a PHP redirect than javascript:
<?php
header("location: success.htm");
?>Matti Ressler
Suomedia
Last edited by Suomedia : Apr 2nd, 2008 at 3: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
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the PHP Forum
- Previous Thread: Problem with page navigation
- Next Thread: Form not sending info...



Linear Mode