Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select file from hard drive in form

Status
Not open for further replies.

ckennerdale

Programmer
Dec 23, 2000
158
GB
I have a mail script I have written in php, which sends the contents of a form to a recipient, but also attachments- either selected locally or from a virtual postcard selection

I want to create a form in flash allowing people to send attachments but I cannot find a away for users to select the file they want to send from their hard drive-

I need to recrate the 'file' element of a standard html form.

(alternatively does anyone knopw how to replace the standard file button in a form with a graphic- the same code as used for replacing the submit button doesnt seem to work)

Cheers Caspar Kennerdale
Senior Media Developer
 
I also need to recreate the 'file' element of a form in Flash. Let me know if you find out.

As for your other question, the code below alters the Reset button. Something similar could work for the File one.

<form name=&quot;formName&quot;>
<input type=&quot;text&quot;>
</form>

<a href=&quot;#&quot; onClick=&quot;this.href='javascript:document.formName.reset()'&quot;><img src=&quot;button.gif&quot; width=&quot;16&quot; height=&quot;16&quot; border=&quot;0&quot;></a>

Live forever or die trying.
 
I think the following tread holds the answer to your first question.

thread250-38391 Live forever or die trying.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top