sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Help with VERY basic web template?

    Scheduled Pinned Locked Moved Corner Bar
    8 Posts 3 Posters 210 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MrMikeEsq
      last edited by

      Hi guys,
      need to edit a free web page template I found online but I'm awful at this sort of thing

      The 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&#058;" class="button" onClick="document.getElementById('ContactForm').reset()">clear</a>
      								<a href="javascript&#058;" 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

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Why don't use this sort of crazzy Web Builder Weebly(free or pro) for no headache like yours? πŸ˜’

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • M Offline
          MrMikeEsq
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            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 and textarea_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)

            Gai...

            1 Reply Last reply Reply Quote 0
            • M Offline
              MrMikeEsq
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                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! πŸ˜†

                Gai...

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MrMikeEsq
                  last edited by

                  Ah that's useful, especially since it has an attachment option. Saved! Thanks πŸ˜„

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    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. πŸ˜„

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement