Jump to content

Recommended Posts

Hi i have the form below:-

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="form">
<form name="contact" action="buy_confirm.php" method="post">
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Name:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;<input type="text" class="text" name="name" size="35"></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Email:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;<input type="text" class="text" name="email" size="35"></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Image:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;<input type="file" class="text" name="image" size="35"></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Website:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;<input type="text" class="text" name="website" size="35">&nbsp;( without the [a href=\"http://www\" target=\"_blank\"]http://www[/a]. )</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Message Box:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;<input type="text" class="text" name="message" size="35" maxlength="100">&nbsp;( 100 characters )</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="right" width="40%" class="text">Price:&nbsp;&nbsp;</td><td align="left" width="60%">&nbsp;&nbsp;£100</td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<tr><td align="center" valign="top" colspan="2"><input class="text" type="submit" name="submit" value="Submit">&nbsp;&nbsp;&nbsp;&nbsp;<input class="text" type="reset" name="reset" value="Reset"></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
</form>
</table>

what i want to do is once they click submit i want the image to be uploaded onto my website in a folder called images.

can any one help please?
Please refer to the numerous tutorials on this site regarding file uploads, or look in the manual, there is several pages devoted to file uploads.

[a href=\"http://www.php.net/manual/en/features.file-upload.php\" target=\"_blank\"]http://www.php.net/manual/en/features.file-upload.php[/a]
[a href=\"http://www.phpfreaks.com/tutorials/36/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/36/0.php[/a]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.