Jump to content

KntckyGentleman

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by KntckyGentleman

  1. Yeah, if you guys want the files I can attach them. The page with the current form is here http://www.rnfa.org/brochurerequest.html It might ask you to fill in an entered site thing if you click it, just pick arbitrary values and type test in the name and test@test.com for the email. This is the page I made with the box. That's not exactly what it'll say, but it's a draft. http://www.rnfa.org/test_brochurerequest.html
  2. Tried that, when I click submit the browser stops on a blank page at "Http://website.com/email.php" and doesn't go through to the thank you page, nor does it send anything.
  3. Do you think it's possible to have the checkbox not as part of the form, but instead something that will trigger Javascript to change the entire form? For instance, if not checked, the for will stay as is, but if checked, an entirely different form will be present, but the only difference between the two would be the action.
  4. I have no idea, I didn't build this page. I'm just trying to edit it. The problem with the php page is that it's all streamlined and really interconnected, and I didn't build it either. And every time I try to change it, it stops working. Perhaps because I am an incompetent fool, I don't know. I know that if I could get the checkbox to lead to a different php page I could copy the email.php and make a few changes to just the values in order to get it to send a different message to someone else. The php was a prebuilt bit of code that the company bought before I started working here and I don't know how to work it without messing it up. It's called Mail Manager EX. I can post the code for it here if you need it.
  5. My name is Hudson, I'm 17 and I live in the U.S. I have one of those jobs that is just "IT." By that I mean that I don't have a specific duty, or team role, I just do everything IT related with my company. I make webpages and alter the current ones for our websites, manage the scripts and databes, and manage the email server. I also create the advertisements and images (with very little room for my own creativity) and I troubleshoot other computers in the office. I am ok with HTML and a novice in PHP and Javascript. W3schools is my haven because if I want to get paid more, I constantly have to be learning new things. I do enjoy building the website and dealing with code, but it's not really something I do in my free time. I personally like to play guitar, sing, and write music, and I also do parkour. Like, legit, not just jumping off of my roof and stuff, I train with people and such and go to showcases and competitions and jams. But that's beside the point, sometimes I go off on little, unrelated tangents. Oh, I also like to play shooters on my PS4, if anyone is interested. Regardless, I am here to learn and contribute if possible, but mostly to learn and bother you with my benign questions.
  6. Not sure if this has been asked before. I did a search but couldn't find it. If this does end up being a duplicate thread, my bad. So I have this form, and what it does is it takes the information that the user inputs and sends it via email to us using a PHP script when submit is clicked. The information is sent to us in a certain way that fits into our client relationship manager nicely. But what the script does is another story. I'm concerned about the HTML. Looks kinda like this. <form action="email.php" class="container" id="mail" method="post" enctype="multipart/form-data" language="JavaScript" name="FrontPage_Form2"><li></li><label>Title</label><select id="title" name="title" tabindex="3"><option value="">Select</option><option value="">Mr.</option><option value="">Ms.</option><option value="">Mrs.</option></select><input name="Submit" class="submit" tabindex="16" type="submit" value="Submit" /> Etc. What I want to know is how to, if possible, have the form set up so that it executes a different script if the user clicks a checkbox. Like <form action="email.php" class="container" id="mail" method="post" enctype="multipart/form-data" language="JavaScript" name="FrontPage_Form2"><li></li><label>Title</label><select id="title" name="title" tabindex="3"><option value="">Select</option><option value="">Mr.</option><option value="">Ms.</option><option value="">Mrs.</option></select><li></li><label>Have the email sent directly to sales</label><input name="checkbox" tabindex="17" type="checkbox"><input name="Submit" class="submit" tabindex="16" type="submit" value="Submit" /> So when that checkbox is clicked, instead of executing email.php, it executes another script instead that sends a different message to a different person. If that makes any sense. If you want the real code, I can give it to you, it's just a lot longer and I don't see it as necessary to illustrate my point. If anyone knows how to achieve this, or has any ideas, I will implement them immediately, and pledge undying loyalty to said user.
×
×
  • Create New...