Jump to content


  • Posts

  • Joined

  • Last visited

About Elemental

  • Birthday 05/10/1959

Previous Fields

  • Languages
    English and Spanish

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
  • Interests
    My Family, then, acting, writing, animation, Flash, riding my VT1100 motorcycle, the woods, the beach, having interesting conversations, reading a good book, watching a good movie or better still, being in one.

Elemental's Achievements


Member (2/7)



  1. dsonesuk, Thank you for your colorful syntax and use of expression's, I surely appreciate a colorful vocabulary. Peace,
  2. justsomeguy, thanks for the info. Peace,
  3. Holo, A couple of quick questions ... First: The following is working ... HTML <input type="checkbox" name="bookme" value="Yes" id="book_me" class="checkBx" /> PHP php if(empty($_POST['bookme'])) { $bookme = ""; } When I select the box and submit the form I receive an email and see that the box has been selected; my question is, is this the correct way to code a checkbox to achieve the result I want? ==================================================== Second question ... I would like to format my <textarea> so that the "Message" I receive, via form submit, has a border? I can format the html page with css, but when the form is submitted there's no outline (border) around the "Message" to make it stand out. Can this be done on my end using js or php or am I subject to the email application my hosting company offers? Peace
  4. Ingolme, Thanks for your prompt reply, Unfortunately I'm not an easy learner; html and css were fairly simple for me to learn but learning code, PHP, JS and the like has been a HUGE challenge for me. I find that I learn, a little better, when I can take the code apart, kind of dissecting it if you will. But if you were to ask me to write one on my own I wouldn't know where to start; one of the reasons I didn't proceed further with Flash, and I love Flash, but the coding side of it was not sticking. Anyway, thank you my friend, I'll look into the sendMail, perhaps I haven't asked the GoDaddy people the correct question. Peace, UPDATE Turns out it was a setting on the server, MX setting, that was preventing the script from working, so that's been fixed and that, as they say, is that. Thank You
  5. Quick question ... I downloaded a contact form script from www.freecontactform.com, their free version; html, php and js. If the script works when I use easyPHP DevServer, should it not also work when I upload it to a live server? I'm not getting any errors but I'm not getting any emails either. Peace,
  6. justsomeguy, Thank you for your reply, Thanks for pointing out the "Hyphen" error, I totally missed that; now corrected. As for the code, I believe you're referencing the following: if ($_SERVER["REQUEST_METHOD"] == "POST"){ if (empty($_POST["name"])){ $nameError = "Name is required"; } else { $name = test_input($_POST["name"]); //check if name contains only letteres and whitespce if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameError = "Only letters and white-space allowed"; } } and they all look the same but for the "variable names", I took it straight from the W3Schools tutorial page on PHP I only changed a couple of things from the original code. If I'm wrong then please advise but are you referring to the if / else statement, should the if section read: if ($_SERVER["REQUEST_METHOD"] == "POST"){ if (empty($_POST[""])){ echo $nameError = "Name is required"; } else { ... so that the error message fires? But I'm guessing that the example on W3Schools, as is written, only works when the PHP is within the same document of the HTML. Peace,
  7. Ingolme, Thanks for your reply, unfortunately changing my contact.html to contact.php didn't work. When I submit the page no validation takes place and no redirect to contact.php, a blank page loads with the following URL http://joseantonio.biz/contact_form.php which is the php document I'm using to validate the form. ??????? The only thing that happened after changing the file to .php was that now a 0 appears under "enter text as seen above". Even though it does not appear when I edit the document (I use Notepad) nor does it appear when I view it locally nor does it appear when the document is HTML; still, there it is. The weird thing is that when I view the contact.php page source (Firefox) there is a 0 between two <span> tags that don't appear otherwise. A new dilemma to add to my quest. Peace,
  8. Hello, I recently had to migrate from one hosting package to another (Classic to cPanel) and in the process my Contact Form stopped functioning. Using the W3Schools PHP tutorials I created the following PHP file: <?php // define variables and or set to empty values $to = "jose@joseantonio.biz"; $subject = "Web Contact Form"; $name = ""; $email = ""; $message = ""; $value-check = ""; $header = "From: $email"; // define Error variables $nameError = ""; $emailError = ""; $messageError = ""; if ($_SERVER["REQUEST_METHOD"] == "POST"){ if (empty($_POST["name"])){ $nameError = "Name is required"; } else { $name = test_input($_POST["name"]); //check if name contains only letteres and whitespce if (!preg_match("/^[a-zA-Z ]*$/",$name)) { $nameError = "Only letters and white-space allowed"; } } if (empty($_POST["email"])){ $emailError = "Email is required"; } else { $email = test_input($_POST["email"]); // check if e-mail address is well-formed if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailError = "Please check email format"; } } if (empty($_POST["message"])){ $messageError = "Message is required"; } else { $message = test_input($_POST["message"]); } if (empty($_POST["value-check"])){ $value-checkError = "Please Enter Value"; } else { $value-check = test_input($_POST["value-check"]); } } function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } // send email mail($to, $subject, $message, $header); header('Location: contact.html'); // End PHP Script ?> And here's the HTML form section: <!-- ** BEGIN form ** //--> <form method="post" action="contact_form.php" name="contactForm" id="contactForm"> <fieldset id="fieldSet-01"> <label for="name" id="name-label"> Name: <input type="text" name="name" id="name" value="" maxlength="60" title="type your name" autocomplete="off" /><span class="error"><?php echo $nameError;?></span></label> <label for="email" id="email-label"> Email: <input type="text" name="email" id="email" value="" maxlength="60" title="type your email" autocomplete="off" /><span class="error"><?php echo $emailError;?></span></label> <label for="message" id="message-label"> Message: </label> <textarea onKeyPress=check_length(this.form); onKeyDown=check_length(this.form); name="message" id="message" cols="45" rows="6" wrap="hard" maxlength="250" title="type your message"></textarea><span class="error"><?php echo $messageError;?></span> </fieldset> <fieldset id="fieldSet-02"> <label for="word-count" id="word-count"><input size="2" value="250" readonly name="text_num" /><span id="countTxt"> = Characters Left</span></label> <p id="checkImg"><img src="images/checkImg.jpg" alt="" /><input id="value-check" name="value-check" autocomplete="off" size="5" maxlength="5" /><span>enter text as seen above</span><span class="error"><?php echo $value-checkError;?></span></p> <input name="submitBtn" id="submitBtn" type="image" value="Submit" src="images/submitBtn_link.png" title="Submit Form" onmouseover="mouseOver()" onmouseout="mouseOut()" /> <label for="required" id="required">all fields are required</label> </fieldset> </form> <!-- **** END form **** //--> A couple of notes / questions I tried using the form action:"" method from the tutorial: <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" name="contactForm" id="contactForm"> but the last two characters of the form tag "> kept showing up in the browser window; any clues as to why? Other examples, else where, showed that you can place the PHP script on the server and have it called when you submit the form by placing the name of the PHP file in the action section of the form tag: <form method="post" action="contact_form.php" name="contactForm" id="contactForm"> Neither form approach Validates the form. The redirect: header('Location: contact.html') in the PHP file is not working either. Where am I off?; a hint would be helpful. Should I be using some kind of call within the html's head tag for the "contact_form.php" file? In case the URL to the online contact page helps: http://joseantonio.biz/contact.html Any help or advise would be appreciated. Peace,
  9. Okay, For those who may be following this thread and wondering; has this fool figured it out yet? I removed the btnsMC from the timeline and simply used the colorsBtn, and the other three as well. So, no tweening, a straight jump from small btns to large btns, and used the following code: on (release) { _root.colorsBtn.enabled = true; unloadMovie(mcHolder);} and it worked. (??????) So, I aks, why did the above code work but this one: on (release) { _root.btnsMC.colorsBtn.enabled = true; unloadMovie(mcHolder);} did not? The only difference is that I removed the btnsMC where all four btns, colorsBtn being one of them, were placed? Some how by removing the btnsMC from the equation it all fell into place. Of course I changed the code as well from "_root.btnsMC.colorsBtn.enabled = true;" to "_root.colorsBtn.enabled = true;" (minus the "") I checked the spelling of all four of the btns instances, I even checked and confirmed the path for the btns and they all returned the same path _root.btnsMC.(place name of btn here) So, again I ask; what gives? Any takers? I'm open for constructive criticism? ============================================================ ============================================================ UPDATE Okay, so ..... I mentioned tweening before. I had placed the btns into an MC, btnsMC, and then tweened that MC from a small MC to a large MC which would take up the whole stage. So, just for the hech of it, I removed the tweening. But, before I did that I added a Keyframe before and after the large frame, I then changed those two frames and the first and last frames of the tween to graphics instead of movieclips but left the center frame as a movieclip, same instance; btnsMC. And wouldn't you know it, yup, it worked. I guess flash didn't like that the tween was a movieclip and that I was targeting it as well ???? I don't know, all I know is that by making the changes I did, it worked. Done. Peace, Elemental
  10. I created a new file testONE.fla I copied the btnsMC onto layer two. created a new mcHolder mc and placed it above the btnsMC, layer one, just like in my original file. all the AS is the same as in my original FLA I tested the movie and then I published the movie and everything worked accordingly. SO WHY ISN'T MY original not working? Makes no sense, obviously something's wrong somewhere
  11. Hey Man, You rock, both are available to me in MX 6.0 and they worked like a charm; went with enabled, on (release){this.colorsBtn.enabled = false;loadMovie("movies/colorsMC.swf", _root.mcHolder);} That said, the reversal, having the colorsBtn re-enabled when I unLoadMovie (mcHolder) isn't working. I know it's a target issue but I can't figure it out. The colorsBtn, along with three other buittons, is nested on the _root of an MC; btnsMC. I did it this way so they'd all be on the same layer and I could just simply fade the btnsMC in and out. I then placed a button on the root of colorsMC.swf with the following AS on (release) { unloadMovie(mcHolder);} This works fine but, of course, the button "colorsBtn" retains the enabled = false so I added the following to the on (release) code: _root.btnsMC.colorsBtn.enabled = true; but that didn't work. I've tried various different combinations but nothing's working for me. If colorsMC.swf takes on the properties of mcHolder shouldn't that work? Please, a suggestion, a shove in the right direction ... Peace, Elemental
  12. I know Flash MX 6.0 is older than dirt but its what I use, im not a developer, im an artis/actor so please help if you can. I have a button on one layer that when clicked will load an swf into an empty MC on the layer above it, everything works fine except that the button remains active under the MC. How can I disable the button so that it doesn't trigger any of its events? Peace, Elemental
  13. Got it, My error was the way I was targetting the compText movie clip. Instead of: _root.compInfo.compText._y = 30.1; I should have been using: _parent.compText._y = 30.1; where _parent is the main timeline of the movie clip compInfo, the mc where compText resides (is nestted) If you're reading this and find that I'm wrong, please correct me. Peace, Elemental
  14. I'll skip the intro and get right to the point. I have the following code on Buttons top Button / text to scroll up on (press, keyPress "<Down>") { compText.onEnterFrame = function() { if (this._y<30.1) { this._y += 25; } };}on (release, releaseOutside, rollOut) { compText.onEnterFrame = "0";} bottom Button / text to scroll down on (press, keyPress "<Up>") { compText.onEnterFrame = function() { if (this._y>-365) { this._y -= 25; } };}on (release, releaseOutside, rollOut) { compText.onEnterFrame = "0";} these work fine scrolling the text field within the compText mc, no problem. the problem is resetting the compText mc to it's original _y point with a single button click within the mc I have another button (the single button click) that would take visitors to my contact page, and reset the _y position to its oroginal state 30.1 I've tried using a modified version of the bottom Button's code: on (release) { if (_root.compInfo.compText._y != 30.1) { _root.compInfo.compText._y = 30.1;} _root.gotoAndPlay("contact");} but this is not working; the gotoAndPlay works fine but the compText mc does not reset to _y = 30.1 or anything else for that matter obviously I'm doing something wrong, Any help would be appreciated Peace, NOTE: I'm still in the stone ages, using Flash MX 6.0 - hope it doesn't create a problem.
  15. Sir Fox, you are truly a Knight.

  • Create New...