4 Replies - 810 Views - Last Post: 01 October 2010 - 01:10 PM

#1 kai891028  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 06-January 10

HTML Form

Posted 01 October 2010 - 08:19 AM

<form method="post" action="mailto:abc@mail.com">
<table>
<tr>
<td style="text-align:right"><span style="color:red">*</span> Name :</td>
<td><input type="text" size="20" maxlength="40" name="name"></td>
</tr>
<tr>
<td style="text-align:right"><span style="color:red">*</span> Contact No. :</td>
<td><input type="text" size="20" name="contact"></td>
</tr>
<tr>
<td style="text-align:right"><span style="color:red">*</span> Supporting Document :</td>
<td><input type="hidden" name="MAX_FILE_SIZE" value="500" /><input type="file" name="doc"></td>
</tr>
<tr>
<td style="text-align:right">Remarks :</td>
<td>
<textarea rows="5" cols="21" wrap="physical" name="remarks">
</textarea>
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Send"> <input type="reset" value="Reset"></td>
</tr>
</table>


Hi everyone, can I use only HTML and/or Javascript to make the above form work?
Because I don't have access to any server for server side scripting.

Is This A Good Question/Topic? 0
  • +

Replies To: HTML Form

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 2937
  • View blog
  • Posts: 7,690
  • Joined: 08-June 10

Re: HTML Form

Posted 01 October 2010 - 08:25 AM

you can try but chances are slim.
- not every browser allows the mailto action (a separate email client is required), even then, the user can abort it
- with Javascript disabled, you have no control
- MAX_FILE_SIZE only works with PHP
- I am not sure, whether the "file upload" works with emails
Was This Post Helpful? 0
  • +
  • -

#3 calebjonasson  Icon User is offline

  • $bert = new DragonUnicorn(); $bert->rawr();
  • member icon

Reputation: 198
  • View blog
  • Posts: 974
  • Joined: 28-February 09

Re: HTML Form

Posted 01 October 2010 - 08:27 AM

You can create a simple mailing form without a server side language. You will need a server side language if you wanted the information in the forum to be passed into a database or to be managed with another page. The good thing about server side languages though, is that you could make that forum without the mailto link which would reduce the amount of spam you are going to receive from bots crawling your website.
Was This Post Helpful? 0
  • +
  • -

#4 kai891028  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 40
  • Joined: 06-January 10

Re: HTML Form

Posted 01 October 2010 - 08:47 AM

I'm actually creating a registration form http://www.facebook....=app_4949752878 on Facebook, I need to collect all of those information for the request to be processed by our company. All of my web development knowledge is very basic and is learned from the Internet, is there any other simple way to create a working similar form?
Was This Post Helpful? 0
  • +
  • -

#5 calebjonasson  Icon User is offline

  • $bert = new DragonUnicorn(); $bert->rawr();
  • member icon

Reputation: 198
  • View blog
  • Posts: 974
  • Joined: 28-February 09

Re: HTML Form

Posted 01 October 2010 - 01:10 PM

You are going to need a server side language such as PHP in order to handle facebooks API etc...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1