[SalesForce] Default Lead Source (or any standard hidden field) on Web-to-Lead form

I have created a web to lead form in salesforce but I cannot seem to default standard fields such as Lead Source = 'Web'. This should be hidden from the user creating the form. I am using the below but does not seem to be working, any ideas?

<input type=hidden name=“LeadSource” value=“Web”>

Best Answer

Try this:

<input type="hidden" id="lead_source" name="lead_source" value="Web" />

The easiest way to figure it out is to add the field in the web-to-lead form creator and then find the name and id.