www.webdeveloper.com
Results 1 to 2 of 2

Thread: Uploading files with form

  1. #1
    Join Date
    Jan 2009
    Posts
    1

    Uploading files with form

    I am (very) new to HTML programming, teaching myself as I go. I wonder if someone might be able to assist me with the best way to enable visitors to a web site to upload a file when completing a form.

    I know you experts will know this stuff inside out. When you can stop chuckling at what a Dilbert I am, maybe you could add the required coding to my form script following:

    Code:
    <div>
    		<input type="hidden" name="acctid" id="acctid" value="o54xghdbxrqkvj8w" />
    		<input type="hidden" name="formid" id="formid" value="533405" />
    		<input type="hidden" name="required_vars" id="required_vars" value=data removed to meet post limits />
    	</div>
    	<table cellspacing="5" cellpadding="5"   BGCOLOR="#AACCFF" TABLE BORDER="5" RULES=NONE FRAME=BOX>
    	<tr>
    			<td valign="top">
    				<strong>Location:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="field-9e9dbb47244d914" id="field-9e9dbb47244d914" size="40" value="" />
    				
    			</td>
    		</tr>
    		<tr>
    			<td valign="top">
    				<strong>Organisation:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="name" id="name" size="40" value="" />
    				
    			</td>
    		</tr>
    		<tr>
    			<td valign="top">
    				<strong>At what stage is the organisation:</strong>
    			</td>
    			<td valign="top">
    				<input type="radio" name="field-182633bdcd99be6" id="field-182633bdcd99be6_0" value="Seed" /> Seed<br/>
    				<input type="radio" name="field-182633bdcd99be6" id="field-182633bdcd99be6_1" value="Start Up" /> Start Up<br/>
    				<input type="radio" name="field-182633bdcd99be6" id="field-182633bdcd99be6_2" value="Early Development" /> Early Development<br/>
    				<input type="radio" name="field-182633bdcd99be6" id="field-182633bdcd99be6_3" value="Expansion" /> Expansion<br/>
    				
    			</td>
    		</tr>
    	<tr>
    			<td valign="top">
    				<strong>Industry:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="field-ac9ac9d76a68bbf" id="field-ac9ac9d76a68bbf" size="40" value="" />
    				
    			</td>
    		</tr>		<tr>
    			<td valign="top">
    				<strong>Contact Name:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="field-84fbddc196b2640" id="field-84fbddc196b2640" size="40" value="" />
    				
    			</td>
    		</tr>
    	
    		<tr>
    			<td valign="top">
    				<strong>Email Address:</strong>
    			</td>
    			<td valign="top">
    				<input type="text" name="email" id="email" size="40" value="" />
    				
    			</td>
    		</tr>
    		data removed to meet post limits
    	
    	<tr>
    		<td valign="top">
    			<strong>If not, how is technology protected?:</strong>
    		</td>
    		<td valign="top">
    			<textarea name="field-cefef9d89106f14" id="field-cefef9d89106f14" rows="6" cols="40"></textarea>
    			
    		</td>
    	</tr>
    	<tr>
    		<td colspan="2" valign="top">
    			<strong><p>Major Competitors</p></strong>			<p>List up to five major competitors, including an overview of their activities, their turnover/profit, market share (if avail.) and USP's.</p>
    		</td>
    	</tr><tr>
    	<td valign="top">
    		<strong>Competitor 1</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-6673e68e3f5186e" id="field-6673e68e3f5186e" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Competitor 2:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-eebf29ab75117e7" id="field-eebf29ab75117e7" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Competitor 3:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-e29b900b31d042d" id="field-e29b900b31d042d" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Competitor 4:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-aad9078861c97be" id="field-aad9078861c97be" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Competitor 5:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-85adc9ab3a57409" id="field-85adc9ab3a57409" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td colspan="2" valign="top">
    		<p><strong>SWOT Analysis</p></strong>
    		<p>Summarise your organisation's strengths, weaknesses, opportunities and threats.</p>
    	</td>
    </tr><tr>
    <td valign="top">
    	<strong>Strengths:</strong>
    </td>
    <td valign="top">
    	<textarea name="field-ee14cc75f3f839b" id="field-ee14cc75f3f839b" rows="6" cols="40"></textarea>
    	
    </td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Weaknesses:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-f185ad46301e2b1" id="field-f185ad46301e2b1" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Opportunities:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-1826d6c491f8f7c" id="field-1826d6c491f8f7c" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Threats:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-f9cdc772fb178bd" id="field-f9cdc772fb178bd" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td colspan="2" valign="top">
    		<p><strong>RLC's</strong></p>
    		<p>List your major risks, the likelihood of them occuring and the consequences if they do occur? Include any mitigation that is planned to alleviate impact of risks.</p>
    	</td>
    </tr><tr>
    <td valign="top">
    	<strong>Risk 1:</strong>
    </td>
    <td valign="top">
    	<textarea name="field-0cc665b1a91f1e1" id="field-0cc665b1a91f1e1" rows="6" cols="40"></textarea>
    	
    </td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Risk 2:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-11b142c40d8d2e6" id="field-11b142c40d8d2e6" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Risk 3:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-7aaa64eed495719" id="field-7aaa64eed495719" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Why invest in our organisation:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-88e9c6f5a894ec3" id="field-88e9c6f5a894ec3" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td colspan="2" valign="top">
    		<strong><p>Key Personnel:</p></strong>		<p>Provide a profile of all key personnel, including their name, role in the organisation, qualifications and employment history.</p>
    	</td>
    </tr><tr>
    <td valign="top">
    	<strong>Key Person 1:</strong>
    </td>
    <td valign="top">
    	<textarea name="field-608efd201763c39" id="field-608efd201763c39" rows="6" cols="40"></textarea>
    	
    </td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Key Person 2:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-8a2a71f958d45c2" id="field-8a2a71f958d45c2" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Key Person 3:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-9947b3efa816f45" id="field-9947b3efa816f45" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>What are your intentions for the business in first five years:</strong>
    	</td>
    	<td valign="top">
    		<input type="radio" name="field-36465f9f7827210" id="field-36465f9f7827210_0" value="Sale" /> Sale<br/>
    		<input type="radio" name="field-36465f9f7827210" id="field-36465f9f7827210_1" value="IPO" /> IPO<br/>
    		<input type="radio" name="field-36465f9f7827210" id="field-36465f9f7827210_2" value="Retention" /> Retention<br/>
    		
    	</td>
    </tr>
    <tr>
    	<td valign="top">
    		<strong>Suggested investor exit strategy:</strong>
    	</td>
    	<td valign="top">
    		<textarea name="field-7ed41d2116378e4" id="field-7ed41d2116378e4" rows="6" cols="40"></textarea>
    		
    	</td>
    </tr>
    
    <tr>
    <SCRIPT>
    	function reverseData(val) 		{var d="";var temp="";for (var x=val.length;x>0;x--) {d+=val.substring(x,eval(x-1));}return d;}
    	function getFilename(val)		{val=escape(val);var reversedsrc=reverseData(val);var nameEnd=reversedsrc.indexOf('C5&#37;');var name=reversedsrc.substring(0,nameEnd);name=reverse  Data(name);name=unescape(name);return name;}
    	var daname='val';
    	document.write('<INPUT TYPE="file" ID="val"><INPUT TYPE="button" VALUE="Get File Name" ONCLICK="alert(getFilename(window.document.getElementById(d  aname).value))">');
    </SCRIPT>
    </tr>
    
    
    <tr>
    	<td colspan="2" align="center">
    		<input type="submit" value=" Submit Form " />
    	</td>
    </tr>
    </table>
    </form>


    This is a long form but I though I'd better include it all for you.

    One little request, can you please keep the answers simple as I am as conversant in HTML as I am in Swahili!

    Thanks heaps...Scotty
    Last edited by Fang; 01-19-2009 at 06:44 AM. Reason: changed code tags. zip large code blocks

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles