July 25, 201115 yr Hi i have a web template which i downloaded and it has a quick message box on it whichi would like to link to an email address. can anyone help with how the script should be? Below is the the only code i have retated to this script. Im using dreamweaver, Windows. ********************************************************************************************************************* <form action="#"> <div class="block_field"><input type="text" class="w_def_text" value="" /><span>Name <b>*</b></span></div> <div class="block_field"><input type="text" class="w_def_text" value="" /><span>Email <b>*</b></span></div> <div class="block_field"><input type="text" class="w_def_text" value="" /><span>Website</span></div> <div class="cl"></div> <div class="block_textarea"><textarea cols="1" rows="1" class="w_def_text"></textarea><span>Message <b>*</b></span></div> <div class="buttons_send_mess"> <div class="main_button"> <span class="l"></span> <a><input type="submit" value="Send" /></a> <span class="r"></span> </div> <div class="main_button"> <span class="l"></span> <a><input type="reset" class="button_reset" value="Clear" /></a> <span class="r"></span> </div> </div> </form> ********************************************** <form action="#"> <div class="block_field fl"><input type="text" class="w_def_text" value="" /><span>Name</span></div> <div class="block_field fr"><input type="text" class="w_def_text" value="" /><span>E-mail</span></div> <div class="cl"></div> <div class="block_textarea"><textarea rows="1" cols="1" class="w_def_text"></textarea><span>Message</span></div> <input type="submit" class="button_send_message" value="" /> </form>
July 25, 201115 yr You'll need server side code to do this, something like PHP. Take note, this is *not* an easy task if your new to web coding and is probably beyond what can be explained easily in a forum post. Even without a form action, the code is wrong, as there's no 'name' attribute in the input fields. Something like this may be of use to you: http://www.formmail-maker.com/generator.php http://www.phpform.org/ These are php form generators. Edited July 25, 201115 yr by bb_matt
Create an account or sign in to comment