Jump to content

hypnoticvibe

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.hypnoticvibe.com

Profile Information

  • Gender
    Not Telling

hypnoticvibe's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Grrrrrrr. My mind is scattered these days. Sorry for confusion. I figured out how to make the subscription form by referencing the E-Mail form a friend wrote for me so I mixed the 2 up. Here's the E-Mail form that's having the problem I described: [code][<?php /* * SPRONKware E-mail Form Handler * * (c)2006 Keith Humm - SPRONKware * * This script may be used, unmodified or modified, with recognition in the form of: * "This script originally written by Keith Humm - SPRONKware / firestudio. *  www.spronkware.com, www.firestudio.co.nz" at the top of the comments. */ /* * Import (required - break if it doesn't exist) the SPRONKware Form Validation Library * which includes sw_botCheck() and sw_validateEmailAddress(). */ require('sw_formvalid_v1.0.php'); /* * Sends an e-mail formatted to the correct array specification: * ['to']: valid e-mail address to send e-mail to * ['subject']: Subject text of e-mail * ['contents']: Message contents, can contain HTML. * ['headers']: Additional headers as defined in email RFC. Should include 'From: Name <e-mail@email.com>' at minimum. */ function sendEmail($tfsc_array) { mail( $tfsc_array['to'], $tfsc_array['subject'], $tfsc_array['contents'], $tfsc_array['headers'] ); } /* * SCRIPT BODY * * - Checks fields are filled out and of acceptable size. * - Runs Spam Bot Check * - Checks for e-mail address validity * - Sends e-mail * - (COMMENTED OUT) Sends automatic reply. */ // Check fields are filled out if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['message'])) { echo("<h1>Error</h1><p>Please fill out all fields. Press the back button to go back.</p>"); } // Check name and e-mail for acceptable size. if(strlen($_POST['name']) > 255 || strlen($_POST['email'] > 255)) { echo("<h1>Error</h1><p>You have exceeded the maximum length for a name or e-mail address. Press the back button to go back.</p>"); } // Validate user and user agent with botCheck from FormValid library. sw_botCheck(); // Validate E-mail Address if(sw_validateEmailAddress($_POST['email'])) { // Validation passed, format e-mail array $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $userEmail['to'] = "hypnoticvibe@gmail.com"; $userEmail['headers'] = "From: Your Name <".$email.">"; $userEmail['subject'] = "E-mail form submission from ".$name." <".$email.">"; $userEmail['contents'] = html_entity_decode($message); // Send e-mail. sendEmail($userEmail); // Now redirect user to thanks page.   header( "Location: thanks.php" );   }   else   {   // E-mail address not valid.   echo("<h1>Error</h1><p>We have detected that the e-mail address entered is invalid. Please press back and check this, otherwise send e-mail using the address noted on the <a href=\"contact.html\">contact details</a> page.");   } ?>[/code]
  2. I am PHP illiterate. I tried to write a little subscription form like this: [code]<?php $address = $_POST['email']; if ($address) {   $to = "hypnoticvibe@gmail.com";   $subject = "Subscribe Me";   $body = "This is a request to add someone to the mailing list.";   mail($to, $subject, $body, "From: " . $address . "\r\nX-Mailer: Subscription Script\r\n");   echo "You have been subscribed."; } else {   echo "Unsuccessful. Please try again."; } ?>[/code] Here is the mark-up that corresponds: [code]<form method="post" action="subscribe.php">  <label for="email"><strong>E-Mail:</strong></label> <input id="email" type="text" size="30" name="email" tabindex="1" /> <input type="submit" value="Subscribe" tabindex="2" /> </form>[/code] What happens is that the person's "name" is always: [quote]Your name[/quote] Unfortuntely, replaying and called people "Your name" tends to confuse people, ;)
  3. [quote author=steviewdr link=topic=111212.msg452226#msg452226 date=1160945528]There are better ways to have the footer stay a minimum distance down the webpage without needing something to push it down!!![/quote] I have no doubt that there are. Unfortunately, I haven't thought of any. Will you share your idea(s)?
  4. [quote author=steviewdr link=topic=111212.msg450856#msg450856 date=1160644194] Apart from fixing the fonts - I dont really like what you have going on, on the left. That left column changes from page to page. It is much too long for the content in the page. On some pages there is more text in the left boxes than on the page.[/quote] Well, the content and navigation are never going to be the same height unless I create content based on the height of the navigation. Also, I didn't want any space at the bottom so I needed some height. [quote author=steviewdr link=topic=111212.msg450856#msg450856 date=1160644194]Your shadow also is a tad extreme IMO.[/quote] For the buttons I think it's great. For the sides, I agree. [quote author=steviewdr link=topic=111212.msg450856#msg450856 date=1160644194]Your horizontal navigation has a few flaws - on the left and right where the navigation bar starts and ends. Check this using another pc.[/quote] Nah, I can see it on my PC. It's the way I saved it. I'll redo it when I get bored. @all: I have made *some* changes so far. I gave the header a few more details. I gave the footer a little more establishment (just made it a block with different bg color and chaged the text - also added a background color change for hover). I increased the line height on the paragraphs. The design still a work in progress and I haven't devoted too much time yet. I'll try to add some energy while still abiding by the old "KISS" acronym over the course of the next couple weeks. Thanks. I have to ask - Is the banner too tall? It's at 177px. Any recommendation? Are the buttons too tall? They're at 74px. Any recommendation?
  5. I meant to ask if you can recommend me 3 fonts since I need 2 back-ups. Thanks again.
  6. [quote="akitchin"]second, i'm not a huge fan of the font used in the main content area.[/quote] I'm nutorious for picking bad fonts. Want to recommend me a font? [quote="akitchin"]at the very least, make the line-height bigger as it feels jumbled.[/quote] Will do. [quote="akitchin"]maybe add some photos[/quote] I agree. I just don't where where I can put a photo that it won't be just floating there. That is, aside from the header. I'll try and pull something off with that in the mean time. [quote="akitchin"]finally, the footer is a bit unceremonious.  it just sort of ends with those three ill-fitting links.  they could do with some style upgrades, and if they were centered over the whole layout's width (rather than the right-side content area) it might help to give the layout a bit of closure.[/quote] Will do. Thanks guys.
  7. Could it be improved? Be as picky as you want. I want to know what the visitor is honestly going to be thinking. [url=http://www.hypnoticvibe.com]DJ Entertainment[/url]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.