Help with VERY basic web template?
-
Hi guys,
need to edit a free web page template I found online but I'm awful at this sort of thingThe bit I need to get working is the contact form.
It looks like this:<h2>Contact Form</h2> <form id="ContactForm" method="post"> <div> <div class="wrapper"><input class="input" type="text" value="Name;" onblur="if(this.value=='') this.value='Name;'" onFocus="if(this.value =='Name;' ) this.value=''" ></div> <div class="wrapper"><input class="input" type="text" value="Email;" onblur="if(this.value=='') this.value='Email;'" onFocus="if(this.value =='Email;' ) this.value=''" ></div> <div class="wrapper"><input class="input" type="text" value="Fax;" onblur="if(this.value=='') this.value='Fax;'" onFocus="if(this.value =='Fax;' ) this.value=''"></div> <div class="textarea_box"><textarea cols="1" rows="1" onBlur="if(this.value=='') this.value='Message;'" onFocus="if(this.value =='Message;' ) this.value=''" >Message;</textarea></div> <a href="javascript:" class="button" onClick="document.getElementById('ContactForm').reset()">clear</a> <a href="javascript:" class="button" onClick="document.getElementById('ContactForm').submit()">send</a> </div> </form>
There is a javascript folder full of js files too, I assume one of those is the key.
Any help would be extremely appreciated
Thanks
Mike -
Why don't use this sort of crazzy Web Builder Weebly(free or pro) for no headache like yours?
-
Because I happened to find a very lightweight single page template that was basically perfect for what I need, this is the only bit I'm not sure about
-
What exactly do you want it to look like? The javascripts in there only get rid of the name, email, fax and message words when you click into the boxes.
The message textarea needs to be bigger for sure. find this code:
textarea cols="1" rows="1"
and give some higher values to those columns and rows like
textarea cols="17" rows="10"
(17 columns are about the size of the text input fields above).Otherwise the exact look will be modified by a stylesheet (search for a *.css file) as there are at least two "
classes
" in there (wrapper
andtextarea_box
).Does it work otherwise? (A "form" is just what it says; its "form" i.e. what boxes there are and how they look - but something needs to work there be javascript or php or similar)
-
Hi Gaieus,
Doh, I think my noobish-ness caused some confusion. It looked fine but it wasn't a working form (as in if it was online, it wouldn't work).
I had to scrap it and found another suitable form online which was much easier to put in and get working.
Thanks
Mike -
I have a really simple php page that works perfectly if you wish. Formatting can be done easily (no fancy looking things to ponder over) but your website has to be able to run php scripts.
http://gaieus.hu/email/
Now as I look at it (or "look back" at it), the formatting is really "old fashioned" to say the least. Using <center> tags (and all that inline styling codes) is a cause to fail a pupil at most programming schools. But hey, it works!
-
Ah that's useful, especially since it has an attachment option. Saved! Thanks
-
No, you cannot save it like that. php scripts are run on server side only so you cannot even see them from the source code. See your PM's. I send the code for you. Change the txt extension to php.
Please, make sure to change the email address on line 3 to yours (best before renaming to php) in the script - otherwise all the emails will end up in my mail box.
Advertisement