Forums

Form won't email text field contents.

jgeis 24 Jun, 2008
I have a simple form that only includes some small text areas and a large text field, and a submit button. The email I get from the form contains all of the information in the small text areas, but nothing from the big text field. My code is provided below, can anyone help me out in figuring out why the input in the text field won't send?

Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>Name:
<label>
<input name="Name" id="Name" >
</label>
<p>Address:
<label>
<input name="Address" id="Address" >
</label>
</p>
<p>City:
<label>
<input name="City" id="City" >
</label>
</p>
<p>State:
<label>
<input name="State" id="State" >
</label>
</p>
<p>ZIP Code:
<label>
<input name="ZIP Code" id="ZIP Code">
</label>
</p>
<p>Phone #:
<label>
<input name="Phone #" id="Phone #">
</label>
</p>
<p>Email:
<label>
<input name="Email" id="Email" >
</label>
</p>
<p>Description of Job:</p>
<p>
<label><textarea id="Description of Job" name="Description of Job" rows="5" cols="45"></textarea>
</label>
</p>
<p>
<label>
<input type="submit" name="SUbmit" id="SUbmit" value="Submit" >
</label>
</p>
</body>
</html>
GreyHead 24 Jun, 2008
Hi jgeis,

Names can't have spaces in them - please change name="ZIP Code", name="Phone #" and name="Description of Job" to for example name="zip_code", etc.

Bob

PS Please also remove the <head> <meta> <body> <title> & <html> tags, Joomla creates its own and adding these may cause problems.
This topic is locked and no more replies can be posted.