How I can add as so many as <input type="file"> same as in GMAIL (add Input Type File dynamically) and send all attachments into an email.
Example: If select 10 files then it should be send into email.

I'm sorry, but i don't think i get what you want.

Do you mean adding a new input field based on how much people want to upload?
you could use javascript, and create a loop that adds a new field every time an old one is editted.

Technically this is JavaScript, and you're in the PHP forum, but i'll give you a start:

<input type='file' name='file1' onchange='increaseFiles(1)' />

in the javascript code, you take the 1 we send with it, so it knows there is one field. then it adds a second field (to a div containing all fields maybe)
with the name file2 and the onchange event increaseFiles(2) etc.

If i got it right, maybe i'll post some more helpfull code.
(and you could move this post to the appropriate forum :) )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.