This is the kind of answer I was hoping for.
Thank you so very much!
This is the kind of answer I was hoping for.
Thank you so very much!
I am totally new to the SEO world. I got a client though, for whom I am doing SEO. He has a laundry/dry clean/moving/shoe repair kind of business and a website for it.
I have no idea how much I should charge him. Also I am not sure whether it has to be a one time thing or ongoing work with monthly payments. We agreed that he pays me $300 and gives one month to work on his site, and we'll see what happens after that.
I have done a lot of work on the site - both on-page and off-page.
Am I supposed to be supporting it and getting paid monthly?
And if so, what should my work be?
I am just lost.
Could you please give me any guidelines? Thank you!
Hello...
There are almost endless options which all are claiming to be the top hosts or the least expensive service, and this can make it almost impossible for web masters to sort fact from fiction. The best way to select a quality web host is to take the selection process one step at a time.
Thank you very much!
For now, I've chosen Dreamhost. So far so good. :)
Here is what I have:
<script type="text/javascript" src="http://www.polycysticliverdisease.com/html/swfobject.js"></script> <div id="flashcontentab3445" align="center"> You probably do not have the Flash Player (<a href="http://get.adobe.com/flashplayer/">Get Adobe Flash Player Here</a>) installed for your browser or the video files are misplaced on your server!</div> <script type="text/javascript" src="http://www.polycysticliverdisease.com/html/easyflvsvab3445.js"></script>
Here is the .flv file:
polycysticliverdisease.com/html/debbie.flv
How do I replace it with a Quicktime movie?
I am an absolute and total novice to this, never have dealt with videos in HTML.
Thank you in advance!
good for you. Ϋ
don't forget to mark this thread as solved.
happy day!
Thank you!
I already did. :)
I got the solution:
$_SESSION = $_POST;
:idea:
I found the solution!
It's:
$_SESSION = $_POST;
:idea:
For me Joomla is best and it is easy to use, also you have lot of tutorials on youtube :)
Joomla! is number two on my list. :)
I think Wordpress should be a good place to start. Drupal is very good but a lil more complicated than Wordpress.
That's what I've figured out. :)
Why are you trying to pass the value as a SESSION variable ?? would'nt it be wise to use a form/POST-GET ?!
(btw, the snippets are still not clear enought to debug ... I suggest you post ~all the code)
Yes, and here is why I try using SESSION instead of form's POST:
My form is divided into two pages, and I need to collect data from both and put it into a database.
In the past I just used to insert data from the first page, get a unique row identifier, and based on it, update the row in the database with data from the second page.
I just think that using SESSION would more sufficient, no?
Anyway, if I don't succeed in this, I'll go back to my old good method. :)
Where's the "code" I asked for ? :D
I'm sorry - you comments didn't make it to my mailbox. It's strange - comments seem to be coming to the mailbox randomly.
Anyway, here is the fuller code of the two scripts:
page1.php:
<?php
session_start();
$_SESSION['invtype'] = $invtype;
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
if (isset($_POST['Submit'])) {
if ($_POST['firstname'] != "") {
$_POST['firstname'] = filter_var($_POST['firstname'], FILTER_SANITIZE_STRING);
if ($_POST['firstname'] == "") {
$errors .= 'Please enter a valid first name.<br/><br/>';
}
} else {
$errors .= 'Please enter your first name.<br/>';
}
if ($_POST['lastname'] != "") {
$_POST['lastname'] = filter_var($_POST['lastname'], FILTER_SANITIZE_STRING);
if ($_POST['lastname'] == "") {
$errors .= 'Please enter a valid last name.<br/><br/>';
}
} else {
$errors .= 'Please enter your last name.<br/>';
}
if (!$errors) {header("location: offerform_switch.php");
}
else {
echo '<div style="color: red">' . $errors . '<br/>
</div>';
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Offer Form, Part 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="inventron_sage_short.css" type="text/css" />
<link rel="stylesheet" href="form.css" type="text/css" />
</head>
<body>
<div id = "logo">
<img src = "img/top.jpg" alt = "logo" />
</div>
<div id = "wrapper">
<div id="stylized" class="myform">
<form id="form" action="page1.php" method="post">
<p>
<label for="firstname">FIRST NAME*:
</label>
<input type="text" name="firstname" id="firstname" value="<?php echo $firstname?>" />
</p>
<p>
<label for="lastname">LAST NAME*:
</label>
<input type="text" name="lastname" id="lastname" value="<?php echo $lastname?>" />
</p>
<div id = "category">Categorize your invention:</div>
<div class="spacer"></div>
<p>
<select id="invtype" name="invtype">
<option value="0" selected="selected">Select …
page1.php:
<?php
session_start();
$_SESSION['invtype'] = $invtype;
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
if (isset($_POST['Submit'])) {
if ($_POST['firstname'] != "") {
$_POST['firstname'] = filter_var($_POST['firstname'], FILTER_SANITIZE_STRING);
if ($_POST['firstname'] == "") {
$errors .= 'Please enter a valid first name.<br/><br/>';
}
} else {
$errors .= 'Please enter your first name.<br/>';
}
if ($_POST['lastname'] != "") {
$_POST['lastname'] = filter_var($_POST['lastname'], FILTER_SANITIZE_STRING);
if ($_POST['lastname'] == "") {
$errors .= 'Please enter a valid last name.<br/><br/>';
}
} else {
$errors .= 'Please enter your last name.<br/>';
}
if (!$errors) {header("location: offerform_switch.php");
}
else {
echo '<div style="color: red">' . $errors . '<br/>
</div>';
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Offer Form, Part 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="inventron_sage_short.css" type="text/css" />
<link rel="stylesheet" href="form.css" type="text/css" />
</head>
<body>
<div id = "logo">
<img src = "img/top.jpg" alt = "logo" />
</div>
<div id = "wrapper">
<div id="stylized" class="myform">
<form id="form" action="page1.php" method="post">
<p>
<label for="firstname">FIRST NAME*:
</label>
<input type="text" name="firstname" id="firstname" value="<?php echo $firstname?>" />
</p>
<p>
<label for="lastname">LAST NAME*:
</label>
<input type="text" name="lastname" id="lastname" value="<?php echo $lastname?>" />
</p>
<div id = "category">Categorize your invention:</div>
<div class="spacer"></div>
<p>
<select id="invtype" name="invtype">
<option value="0" selected="selected">Select type</option>
<option value="product">PRODUCT</option>
<option value="software">SOFTWARE</option>
</select>
<input type="submit" name="Submit" value="Next!" />
</div>
</div>
</body>
</html>
offerform_switch.php:
<?php
session_start();
// echo variable from the session, we set this on our other page
echo $_SESSION['invtype'];
$invtype = $_SESSION['invtype'];
//connect to your database ** EDIT REQUIRED …
tsk. :-/
maybe your php.ini have a problem with your sessions.
check if the session is active in your php.ini .looking forward :
what do you get from echo $_SESSION; anyway?
When I hardcode the value, I get it on the screen, when not, nothing gets output.
Alas. Still doesn't work. :-/
What do we gain using $_POST anyway?
In fact I experimented with it myself earlier, and it didn't work for me.
I'm trying to pass a value from a select input control on an HTML form.
Here is the PHP of page1.php:
session_start();
$_SESSION['invtype'] = $invtype;
header("location: offerform_switch.php");
Here is the HTML:
<select id="invtype" name="invtype">
<option value="0" selected="selected">Select type</option>
<option value="product">PRODUCT</option>
<option value="software">SOFTWARE</option>
</select>
This is offerform_switch.php:
session_start();
echo $_SESSION['invtype'];
switch ($invtype){
case "product":
include("page2_product.php");
break;
case "software":
include("page2_software.php");
break;
default:
echo "The invention type did not go through correctly.";
}
I get this:
The invention type did not go through correctly.
all the time.
Although, if I hardcode the SESSION variable value in page1.php, like this:
$_SESSION['invtype'] = 'product';
I get this:
productThe invention type did not go through correctly.
all the time.
which means that the value does pass from one page to the other, right?
Can't figure out what I'm doing wrong.
I'm trying to obtain the font-weight somewhat between normal and bold.
Or bold and even bolder.
Nothing seems to work.
When I try numeric values, 590 shows as normal text and 600 is full bold.
Nothing in between.
Please advise.
Thank you!
You're welcome;
I never understood why php loves isset that much. As time goes by, you start to blindly put it in!
Yes, exactly. Logically, it shouldn't matter and is rather redundant in cases like this one.
Try using this 'cleaner' code:
<?php if(isset($_POST['confirm']) && $_POST['confirm']== 'Y'){ header("Location: http://mysite.com/sage/page1.php"); } else { header("Location: http://mysite.com/sage/disagree.html"); } ?>
I've thought about adding 'isset', but for some reason never did. :)
Anyway, what you've suggested - worked.
Thank you very much!
Here is my php:
<?php
$confirm = $_POST['confirm'];
if(($_POST['confirm'] == 'Y') {header("Location: http://mysite.com/sage/page1.php");}
else {header("Location: http://mysite.com/sage/disagree.html");}
?>
Here is the HTML:
<form id="form" action="terms_redirect.php" method="post">
<table id = "radio">
<tr>
<td>
<input type="radio" id="agree" name="confirm" value="Y" />
</td>
<td>
<label for="agree">I have read and agree to the Terms and Conditions</label>
</td>
</tr>
<tr>
<td>
<input type="radio" id="disagree" name="confirm" value="N" />
</td>
<td>
<label for="disagree">I disagree</label>
</td>
</tr>
</table>
<INPUT type="image" name="submit" id = "button" img src = "img/btn.gif" alt = "submit" />
</form>
This is the error I get:
Parse error: syntax error, unexpected '{' in /home/mysite.com/sage/terms_redirect.php on line 5
Can you see what's wrong with the code?
Thank you!
Does noone use Contribute? I know its not free, but I'm sure with as popular as DW is, many people use contribute. Just curious.
I've never seen any request for it from potential employers.
Wordpress is the simple theme based CMS to start with. You can also with joomla.
http://www.google.com/custom?hl=en&safe=active&client=pub-0644743064127479&cof=FORID:13%3BAH:left%3BS:http://www.cocodle.com/%3BCX:Cocodle%3BL:http://www.cocodle.com/images/cocodle_logo100x.jpg%3BLH:24%3BLP:1%3BLC:%230000ff%3BVLC:%23663399%3B&cx=partner-pub-0644743064127479:4te5vx-grlq&adkw=AELymgW92jwKalet5rvA3rvaYxeX55U0CJVI9Iw0R43OBp71qKgGAhD5-5FMVOPW7BYv1VLeUb6KGLInRq5tmpEMuH1tiyD1XXroHRdTFYBe4cuEJ4LYzbQ&channel=6674144857&oe=ISO-8859-1&&sa=X&ei=3FdqTM2jFsS14gb8gZWPAQ&ved=0CAgQBSgA&q=wordpress+beginner+tutorials&spell=1
Thank you!
I've already started learning WordPress, then next step will be Joomla!, and the last - Drupal.
I've noticed that the demand for Drupal comes with larger companies that require more complicated, professional web based software.
If you wanna go hardcore you can always try to design your own ;) good luck with WordPress! :D
I'm not that far yet, but I'm on the way. Thank you! ;)
Now, thanks to you, I'm sure I'm on the right track. :)
From my experience is Wordpress the easiest one to grasp. Drupal has an enormous learning curve and will take quite a while to fully understand and I haven't tried Joomla! yet. My suggestion is that you first and foremost figure out what kind of site you will use it for: a forum, marketing site or personal site/blog. Wordpress has a forum plugin but Drupal or Joomla! would be better suited for it. The same for marketing sites/online stores. But Wordpress can do all that too but it may just not be just as convenient since it's from the beginning a blogging platform.
But if you are just curious then my vote would be that you start learning wordpress since it's so simple and easy to start working with. :)
Thank you very much!
Yes, I'm just curious because I see a lot of demand for CMS around, especially for WordPress.
And I did figure out that it is the easiest one to learn and I started with it. :)
there are many way of doing this. One easy way i can think of is using a cron job
Thank you!
Cron job was the first thing I thought of.
Let's say a user submitted some information through a form into a MySQL database.
The data was timestamped.
The user is given a certain number of days to submit an additional chunk of data into the database.
If he doesn't submit it by the required date, an email has to be sent to him with a reminder.
What is the best way to do this?
I'm thinking of automatically running the PHP script once a day.
How do you run scripts automatically on a schedule?
Or is there any better way to do the reminder email?
Thank you!
I've never used any CMS as a developer.
Now I think it's time for me to start getting familiar with them.
There are three out there I laid my eye on - WordPress, Joomla!, Drupal.
Which one should I begin with?
Thank you!
Do you have a doc type set? Meaning do you have something like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
as the first line of your html file? When I added it to my file I saw all three buttons.
Sorry for the delayed response - the notification of this message hasn't come to my email.
Yes, I do have it all set in my file.
The resolution of the problem is this:
http://www.daniweb.com/forums/post1291891.html#post1291891
It's just IE. It doesn't understand things like this:
input[type=submit]
But thank you!
The @ just stops an error from being shown, if there is one. OK, if you're happy with that, fantastic. Result!
Yes, it deletes the file if there is one uploaded, and doesn't print any messages in the browsers if there is nothing there to delete.
I'll try and dig it further, but for now my task is completed. :)
Hold on, you've done the move thing right?
move_uploaded_file ( string $filename, string $destination )
If you don't specify your destination, the file won't be there. See handling file uploads in the php manual. I'm assuming that you've just used 'is_uploaded'. I think I'm right in thinking that you need move_uploaded to actually place it in the directory in the first place.
Yes, Alan, it's done right.
You'll be surprised at what made it all work!
Here:
@unlink.
I don't know why. To me it's a mystery and magic, although my brother-in-law (also a programmer) says there are no such things in programming as mystery and magic. :)
This is what my code looks like now:
if(isset($_FILES['uploadedfile'])){
$pathfile = "/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/" . $_FILES['uploadedfile']['name'];
@unlink($pathfile);
Thank you so much for all your help!
Vita
The two machines used different PHP versions.
I enabled PHP5 on one of them, and it solved the problem.
Okay, I enabled PHP5 on the other server, and it solved the problem.
I use SwiftMailer in my PHP script to send emails upon HTML form submission.
On the test server it all works fine.
On the production server (different host) it gives me this error message:
Parse error: syntax error, unexpected
T_CLASS in
/home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php
on line 18
The two machines use different version of PHP: one is PHP5 and the other is PHP4.4.9.
Could that cause the problem or it's something else?
How do I resolve it?
Thank you!
I use SwiftMailer in my PHP script to send emails upon HTML form submission.
On the test server it all works fine.
On the production server (different host) it gives me this error message:
Parse error: syntax error, unexpected T_CLASS in /home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php on line 18
What could it be?
Thank you!
Well obviously. Sorry.
You only do a $_FILES[...] if you've uploaded a file. If there is no file upload, there can be no $_FILES[...] variable, so when you use it, you get an error.
Place an isset around the whole shebang:
if(isset($_FILES['uploadfile'])){ $pathfile = "/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/" . $_FILES['uploadedfile']['name']; if(file_exists($pathfile)){ echo "file found"; unlink($pathfile); }else{ echo "no file found"; } }
I remember reading somewhere that it's more correct to search for the missing file:
i.e. if(!file_exists(...)) etc.
But that's up to you.
Still same error message...
I tried both your version above and this one:
if(isset($_FILES['uploadedfile'])){
$pathfile = "/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/" . $_FILES['uploadedfile']['name'];
echo "file found";
unlink($pathfile);
}else{
echo "no file found";
}
Same result... I already feel bad bothering you.
I have four buttons in an HTML form.
Here is the HTML:
<tr>
<td>
<div class="fileinputs">
<input type="submit" name="submit" class="submit" />
</div>
<div class="fileinputs">
<input type="file" class="file" name="uploadedfile" />
<div class="fakefile">
<img src="uf_btt.png" />
</div>
</div>
<div class="fileinputs">
<input type="reset" class="reset" />
</div>
<div class="fileinputs">
<input type="button" class="print" onclick="window.print()" />
</div>
</td>
</tr>
Here is the CSS:
.submit {
background: transparent;
background-image: url(submit_btt.png);
border: none;
padding: 0;
margin: 0;
text-indent: -9999px;
}
.print {
background: transparent;
background-image: url(print_btt.png);
border: none;
padding: 0;
margin: 0;
text-indent: -9999px;
}
.reset {
background: transparent;
background-image: url(reset_btt.png);
border: none;
padding: 0;
margin: 0;
text-indent: -9999px;
}
input[type=submit]
{
width: 119px;
height: 47px;
}
input[type=button]
{
width: 119px;
height: 47px;
}
input[type=reset]
{
width: 119px;
height: 47px;
}
input[type=file]
{
width: 119px;
height: 47px;
}
div.fileinputs {
position: relative;
float: left;
}
div.fakefile {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
input.file {
position: relative;
text-align: right;
-moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
}
It works fine in all browsers, and only in IE you can see just one button ('file') on the screen instead of four.
Any insight, please?
Thank you!
Oh no...
It's come back.
When I do this:
$pathfile = "/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/CablevisionBill.doc";
if(file_exists($pathfile)){
echo "file found";
unlink($pathfile);
}else{
echo "no file found";
}
all works perfectly well.
When I do this:
$pathfile = "/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/" . $_FILES['uploadedfile']['name'];
if(file_exists($pathfile)){
echo "file found";
unlink($pathfile);
}else{
echo "no file found";
}
in case I do upload a file, it works fine - uploads the file, sends the emails with the attachment, deletes the file.
But if I submit the form without a file, it gives me this:
file found
Warning: unlink(/home/vitusya/eximi.dreamhosters.com/Hawaii/html/uploads/) [function.unlink]: Is a directory in /home/vitusya/eximi.dreamhosters.com/Hawaii/html/contact_email.php on line 206
What is it it's finding in the empty folder?:-O
Thank you so, so, so much!
The problem was - of course, I gave an incorrect path to the script.
Now it works flawlessly!
Can't see why it wouldn't work.
Get the full path of the uploaded file - save it and paste it into the delete file snippet to see if it works. If not, come back.
if(file_exists($yourfullpathtofile)){ echo "file found"; unlink($yourfullpathtofile); }else{ echo "no file found"; }
Okay, I'm back. :)
It's not finding the file. "no file found" is what is displayed, and the file, although in the directory, doesn't get deleted.
Here is my code:
$yourfullpathtofile = "http://eximi.dreamhosters.com/Hawaii/html/uploads/CablevisionBill.doc";
if(file_exists($yourfullpathtofile)){
echo "file found";
unlink($yourfullpathtofile);
}else{
echo "no file found";
}
Thank you a million, prixat!
It worked.
The only problem left is that in IE is still only seen one button - "File Upload".
Do you have any idea what could cause it?
Here is my HTML:
<tr>
<td>
<div class="fileinputs">
<input type="submit" name="submit" class="submit" />
</div>
<div class="fileinputs">
<input type="file" class="file" name="uploadedfile" />
<div class="fakefile">
<img src="uf_btt.png" />
</div>
</div>
<div class="fileinputs">
<input type="reset" class="reset" />
</div>
<div class="fileinputs">
<input type="button" class="print" onclick="window.print()" />
</div>
</td>
</tr>
And here is my CSS:
div.fileinputs {
position: relative;
}
div.fakefile {
position: absolute;
top: 0px;
left: 0px;
z-index: 1;
}
input.file {
position: relative;
text-align: right;
-moz-opacity:0 ;
filter:alpha(opacity: 0);
opacity: 0;
z-index: 2;
}
As a result, the buttons are positioned vertically, one below the other. In IE only "Upload File" button is seen.
I need all the buttons to be positioned horizontally, one next to the other, and look consistent in all browsers.
How do I obtain that?
Thank you!
You probably need to specify the actual path from webroot as opposed to the $_FILE variable:
$pathfile = $_SERVER['DOCUMENT_ROOT'] . "/images/" . $_FILES['uploadedfile']['name']; if(file_exists($pathfile)){ unlink($pathfile); }
I used '/images/' as the folder you uploaded your file to. Change this to the actual folder you used.
No, the same result, alas.
check to see that the file exists first;
if(file_exists(..filename..)){ ...do your delete stuff... }
Okay, now it looks like this:
if(file_exists($_FILES['uploadedfile']['name'])){
unlink($_FILES['uploadedfile']['name']);
}
and doesn't give an error message, but the file doesn't get deleted either.
check to see that the file exists first;
if(file_exists(..filename..)){ ...do your delete stuff... }
What should I use for the filename? This:
$_FILES
?
Could you add your HTML code, as well as your php.ini file?
Actually, I was able to fix it with this:
if (is_uploaded_file($_FILES['uploadedfile']['tmp_name'])) {
Now, though, I got another problem.
I want the file to be deleted from the directory after it was sent as an attachment with an email. When there is a file uploaded, it all works fine. But if there isn't, I get this error message:
Warning: unlink(uploads/) [function.unlink]: Is a directory in /mydomain.com/Hawaii/html/contact_email.php on line 191
How do I fix it?
just do an if(isset($_FILES....)) to check for an uploaded file
Thank you!
Actually, I fixed it with this:
if (is_uploaded_file($_FILES['uploadedfile']['tmp_name'])) {
Now, though, I got another problem.
I want the file to be deleted from the directory after it was sent as an attachment with an email. When there is a file uploaded, it all works fine. But if there isn't, I get this error message:
Warning: unlink(uploads/) [function.unlink]: Is a directory in /mydomain.com/Hawaii/html/contact_email.php on line 191
How do I fix it?
Here is a problem.
I have an HTML form with several fields in it.
One of the fields - 'Upload file'.
When I upload a file, everything works properly. But when I choose to submit the form without a file, it gives me the error message: "There was an error uploading the file, please try again". Looks to me that the script thinks that uploading a file is mandatory.
How do I change it?
Here is my PHP:
//File upload
// Where the file is going to be placed
$target_path = "uploads/";
// Add the original filename to our target path.
//Result is "uploads/filename.extension"
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
//End of file upload
Thank you!
The solution is:
$attachment = Swift_Attachment::fromPath($target_path);
Hi levsh!! thanks!!, but is there any option available for only $allowed_filetypes?
thank you very much!
I'm sure there is. I just haven't gotten to that point myself.
I'm having trouble attaching an uploaded file to an email. When I get this to working, I'll worry about the allowed filetypes. :)
This works for me:
//File upload
// Where the file is going to be placed
$target_path = "uploads/";
// Add the original filename to our target path.
//Result is "uploads/filename.extension"
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}
//End of file upload
'uploadedfile' is the name of the 'file' input type element in the HTML form.