HTML - Use Of Variable In Recipients Statement
I have tried to use a variable in mailto: in order to protect my email address from spammers. Am I doing something wrong or is it simply not possible?
$info="my@email.com"; /*email address is stored in email.inc and is moved to the script with the include() statement.*/ $recipients = '$info'; Similar TutorialsOk so I have a request to have an html page that delivers the inputted data to a respective recipient's email address determined by a particular field on the form (i.e company name assigned to a sales person). I am not sure the best method to do this.....I was looking for suggestions. Thanks a bunch. Brian I am trying to create a form in HTML that will allow the user to select a department from a drop down and also enter their email address. on submit the form will be sent to the email address corresponding to the department as well as sending the user a copy of the form(the email address they entered manually). This code only sends the form to Dept1 & Dept2. If I move the "email_count" input field before "name1" then it sends the user email and the Dept1 email only. This works great if they select Dept1 each time, not so much if a different department is chosen. Any help would be great! I don't have access to the cgi code. Here is what I have so far: <form action="http://intranet/cgi-bin/genemail.cgi" method="POST" enctype="x-www-form-encoded" class="body" name="theform" onSubmit="return formCheck()"> <input type="hidden" name="FORM" value="IDEA Form"> <input type="hidden" name="sendto" value="MORE_EMAIL"> <input type="hidden" name="name1" value="Dept1"> <input type="hidden" name="email1" value="Dept1@email.com"> <input type="hidden" name="name2" value="Dept2"> <input type="hidden" name="email2" value="Dept2@email.com"> <input type="hidden" name="name3" value="Dept3"> <input type="hidden" name="email3" value="Dept3@email.com"> <input type="hidden" name="name4" value="Dept4"> <input type="hidden" name="email4" value="Dept4@email.com"> <input type="hidden" name="email_count" value="2"><!--for email to submitter--> Here is the option box: <select name="name_choice"> <option selected>Dept1</option> <option>Dept2</option> <option>Dept3</option> <option>Dept4</option> </select> Here is the text box that the user will enter their email address: <input name="email5" type="text" value="first.last@email.com" size="50" id="UserEmail"> Here is my submit code; <input type="submit" name="Submit" value="Submit"> I'm making a forum that has two types of users - admin(user level = 1) and normal(user level = 0). Only the admin users can create and delete categories from the forum. So i was wondering if I could put an if statement in the code below that would only allow the admin users to see the last two links. Something like if (signed in & user level = 1) then display the links HTML Code: <h1>My forum</h1> <div id="wrapper"> <div id="menu"> <a class="item" href="/forum/index.php">Home</a> - <a class="item" href="/forum/create_topic.php">Create a topic</a> - //if statement here for admin users <a class="item" href="/forum/create_cat.php">Create a category</a> - <a class="item" href="/forum/delete_cat.php">Delete a category</a> Ok, Hi all.... I have a registration form setup for signing up for motorcylce classes. What I need is, upon clicking submit, for the form to send the user to 1 of 3 different url's depending on which course they selected. So IF "Course A" is selected -then get url A Any help would be so awesome! Here is my code so far: <table width=80% table border="0"> <tr> <td valign="top"> <div class=contact1><br> <label for="title1">Rider Information</label><br><br> <input type="radio" name="title1" id="title1" class="radiobutton" value="Mrs.">Mrs.</input> <input type="radio" name="title1" id="title1" class="radiobutton" value="Mr.">Mr.</input><br><br> <label for="fname1">First Name</label><br> <input type="text" name="fname1" id="fname1" size="30" class="inputbox required" value="" /><br> <label for="name1">Last Name</label><br> <input type="text" name="name1" id="name1" size="30" class="inputbox required" value="" /><br><br> <label for="street1">Street Address</label><br> <input type="text" id="street1" name="street1" size="30" value="" class="inputbox required" maxlength="100" /> <br> <label for="city1">City, State</label><br> <input type="text" name="city1" id="city1" size="30" class="inputbox required" value="" /><br> <label for="zip1">Zip</label><br> <input type="text" name="zip1" id="zip1" size="30" class="inputbox required" value="" /><br><br> <label for="phone1">Phone</label><br> <input type="text" name="phone1" id="phone1" size="30" class="inputbox required" value="" /><br> <label for="mobile1">Mobile</label><br> <input type="text" name="mobile1" id="mobile1" size="30" class="inputbox" value="" /><br <label for="email1">EMail Address</label><br> <input type="text" id="email1" name="email1" size="30" value="" class="inputbox required validate-email" maxlength="100" /><br><br> <label for="birthdate1">Date of Birth (mm-dd-yyyy)</label><br> <input type="text" name="birthdate1" id="birthdate1" size="30" class="inputbox required" value="" /><br> </div> </td> <td valign="top"> <div class="contact2"><br> <label for="title2">Emergency Contact</label><br><br> <input type="radio" name="title2" id="title2" class="radiobutton" value="Mrs.">Mrs.</input> <input type="radio" name="title2" id="title2" class="radiobutton" value="Mr.">Mr.</input><br><br> <label for="fname2">First Name</label><br> <input type="text" name="fname2" id="fname2" size="30" class="inputbox required" value="" /><br> <label for="name2">Last Name</label><br><input type="text" name="name2" id="name2" size="30" class="inputbox required" value="" /><br><br> <label for="phone2">Phone</label><br> <input type="text" name="phone2" id="phone2" size="30" class="inputbox required" value="" /><br> <label for="mobile2">Mobile</label><br> <input type="text" name="mobile2" id="mobile2" size="30" class="inputbox" value="" /><br> </div> </td> </tr> <tr valign="top"> <td colspan="2"> <hr> <br>How did you find us?<select name="findus" id="findus"><br> <option selected>please select</option> <option value="Google">Internet (Google)</option> <option value="Internet">Internet</option> <option value="Friends">Friends</option> <option value="Newspaper">Newspaper</option> <option value="Dealership">Dealership</option> <option value="Ride Shop">Ride Shops</option> </select><br><br> <hr><br><br> <input type="checkbox" id="agbok" name="agbok" class="inputbox required" /> <label for="agbok">By clicking "Submit" you certify that you have read the <a href="http://arizonamotorcyclesafetycourse.com/new/index.php?option=com_content&view=article&id=11">Terms & Conditions</a>, and Course Waiver and that all information provided is correct and accurate.</label><br><br> </td> </tr> <tr valign="top"> <td colspan="2"> <input type="submit" class="button validate" value="Submit"> </td> </tr> </table> can i put a conditional statement in a .css file ? im having trouble with getting my div & or hr to work in every browser i fix something on 1 browser i loose something from another when im coding the site... i want to know if i can put a statement that if browser internet explore execute this set of rules, elseif execute these set of rules... im working on adding a scrolling text that i found online, but i want the text to pause for 1 second at the beginning of each new topic on the scroll menu i tried adding body.pause(1) but i couldnt get that to work do i need to create a .css for this somthing like <style> pause2 { body.pause(2) } </style> and then call it in a tag <pause2> </pause2> I have a select box like so Code: <select name="something" Size=10 multiple style="font-family:monospace; font-size:8pt"> <option value='opt1'>Option 1</option> <option value='opt2'>Option 2</option> <option value='opt3'>Option 3</option> ... <option value='opt9000'>Option 9000</option> </select> Now Let's say that I wanted opt45 to be preselected, how do I get the select box to position the scroll bar to where opt45 would be in the list. I've figured out how to preselect things, but the user can't tell because it's 35 lines below the select box. Hello!I would like to know if there is another way preselect OPTION VALUE than what I have done below? If I use what I have done below to dynamically the "SELECTED VALUE=" AREA WITH A _get/$VARIABLE, I will end up with 2 identical entries in my drop-down list (such as 2 AVA entries) and I would like to avoid this. Any ideas on how I could avoid this using a different type of method on selecting a default item? Thank you! Code: <SELECT NAME="custom2"> <OPTION SELECTED="SELECTED" VALUE="Lettering Style ADX">ADX</OPTION> <OPTION VALUE="Lettering Style AJA">AJA</OPTION> <OPTION VALUE="Lettering Style AMZ">AMZ</OPTION> <OPTION VALUE="Lettering Style ATH">ATH</OPTION> <OPTION VALUE="Lettering Style AVA">AVA</OPTION> <OPTION VALUE="Lettering Style BAM">BAM</OPTION> </SELECT> Hello, I am going to make an Iframe. The URL that shows inside the Iframe has to change with the click of a button. So as defult, it displays www.1.com when i click on the button '2' on the webpage (not inside the iframe) the Iframe then displays www.2.com the same for buttons 3 4 5 etc. how can i do this? i was thinking of having the URL the iframe goes to as a variable, and changing the variable each time i click on one of the buttons? Help please ^_^ thanks. Hey guys, new to the forum.. I'd like to have a text box on my website where users can put in a "number" and click submit. That would then open a new window with a URL that includes that number. i.e. "http://mywebsite.com/something.cgi?number=" Is this possible? I'm not sure how to get a form to accept the text box as the variable to open the URL. I'm new to all this stuff, but I am working on creating a simple drop-down menu that must pass a variable to an xml script (VXML to be exact). All files will be on a linux web host. Any suggestions on what to use for the drop-down menu web page (php, java script, etc)? Depending on what selection is chosen in the drop down, a different value need to be assigned to the variable. Thanks! At this moment I am making a 'website' which shows embedded docx, doc, pfd, ppt or pptx files, using the google docs viewer. This works great, but of course I have a problem. The files on the server have one NONE variable part in the name, and the other parts are variable. So an example: firstfile_001.pdf firstfile_001.docx first_001_abc.pptx So the files can have 3 variable parts in it: *_001_*.* But only one of the files is present. So if there is a 001_*.pdf, there is no 001_*.doc. Is there a way to adobt to this variable urls? (PHP is not an option because it is not supported by the server. I cannot change anything on the server (i.e., get an other server or so.)) Hi, I can't get the variable E to print at the end by the form answer. It is calculating cubic inches, then the Answer is to gallons. I want to see both answers. Thanks in advance!! Code follows: <HTML> <HEAD> <TITLE>Calculation</TITLE> <SCRIPT LANGUAGE="JavaScript"> function CalculateSum(Atext, Btext, Ctext, Dtext, form) { var A = parseFloat(Atext); var B = parseFloat(Btext); var C = parseFloat(Ctext); var D = parseFloat(Dtext); var E = (A*C*D) + ((A/2) * (B-C)*D); form.Answer.value = E/200 ; } /* ClearForm: this function has 1 argument: form. It clears the input and answer fields on the form. It needs to know the names of the INPUT elements in order to do this. */ function ClearForm(form) { form.input_A.value = ""; form.input_B.value = ""; form.input_C.value = ""; form.input_D.value = ""; form.input_E.value = ""; form.Answer.value = ""; } // end of JavaScript functions --> </SCRIPT> </HEAD> <BODY> <P><FONT SIZE="+2">Calculation</FONT></P> <FORM NAME="Calculator" METHOD="post"> <P>Enter A: <INPUT TYPE=TEXT NAME="input_A" SIZE=10></P> <P>Enter B: <INPUT TYPE=TEXT NAME="input_B" SIZE=10></P> <P>Enter C: <INPUT TYPE=TEXT NAME="input_C" SIZE=10></P> <P>Enter D: <INPUT TYPE=TEXT NAME="input_D" SIZE=10></P> <P><INPUT TYPE="button" VALUE="CALCULATE" name="AddButton" onClick="CalculateSum(this.form.input_A.value, this.form.input_B.value, this.form.input_C.value, this.form.input_D.value, this.form )"></P> <P><INPUT TYPE="button" VALUE="Clear Fields" name="ClearButton" onClick="ClearForm(this.form)"></P> <P>Cubic Inches = <script type="text/javascript"> document.write(E); </script> <br> Gallons =<INPUT TYPE=TEXT NAME="Answer" SIZE=12> </P> </FORM> </BODY> </HTML> For my layout I've got a div content and several others inside it. HTML Code: <div id="content"> <div id="box1"> <h1>Portfolio</h1> </div> <div id="port"> sample text </div> <div id="port"> sample text </div> </div> And that's the css for it Code: #content { float: right; width: 540px; margin-right: 40px; margin-top: 20px; height: 100%; } What goes inside the div "content" varies for each page, so I want to make the content with variable height, but I can't! When I preview the page its shows the "content" being overlapped by what's inside it. It may be something very simple (still learning) but I can't see what is wrong. Can someone help please? Many thanks! Hi all... i am using the following HTML to load a flash video on a iweb page. Is there a way i create links on my page to different flash files on my web server and have it play that video? I would think i have to set the 'embed src' and 'value' to a variable that's changed every time a new link is clicked on the page but how do i setup up that variable? <object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/ flash/swflash.cab#version=6,0,40,0" border="0" width="800" height="600"><param name="movie" value="http://web.mac.com/youriDisk/docs/flash.swf"><param name="quality" value="High"><embed src="http://web.mac.com/youridisk/docs/flash.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="800" height="600"></object> I need to pass a variable from a form to my url. here is the html: Code: <form action="gdform.asp" method="post" id="form1"> Would you like to be notified of coming promotions?<br /> <label for="radiobutton">Yes</label> <input name="_Send_Promos" type="radio" value="radiobutton"id="contactYes" /> <label for="label">No</label> <input name="_No Promos" type="radio" value="radiobutton" id="contactNo" /> <br /> <br /> <input type="text" name="_Name" size="40" maxlength="42" /> <br /> <input type="text" name="_Company" size="40" maxlength="42" /> <br /> <input type="text" id="_Email" name="_Email" size="40" maxlength="42" /> <br /> <input type="text" name="_Phone" size="40" maxlength="42" /> <input name="submit" type="submit" value="Send" onclick="getEmail()" /> <input name="reset" type="reset" value="Clear" /> </form> now here is my java: Code: <script type="text/javascript"> function getEmail() { alert("alert"); var emailAddress if(document.form1._Send_Promos.checked == true) { emailAddress = document.getElementById("_Email").value; document.write('<input type="hidden" name="redirect" value="http://www.myalbano.com/thankyou.aspx?EmailAddress="'+ emailAddress'">"'); } else { document.write('<input type="hidden" name="redirect" value="http://www.myalbano.com/thankyou.aspx"'); } } </script> problem is that the javascript never gets executed. I do not get the alert. I have put it at the top, in the html, and at the bottom of the page. None has worked. what is it that I need to do to get the html to see the java? Hi! I would like to know how do I pass a variable in my URL to the next page. HTML Code: For example, my URL is: http://www.mysite.com?source=google I'm using this form code to go to the next page: <form action="http://www.mysite.com/next-page.html" method="get" name="form"> <input type="text" name="zipcode" maxlength="5" id="zipcode" /> <br /> <input type="submit" id="button" value="Go"/> </form> So the next page URL will be: http://www.mysite.com/next-page.html?zipcode=11111 I want that the variable "google" will be also in this URL: http://www.mysite.com/next-page.html?zipcode=11111&source=google How I do that? Thanks, Steve Hi Can someone help or advise me I am after a piece of code that will show a search box, which will display two different results depending on what is entered into the search. If someone was to enter one of my selected keywords a successful message appears. But if any other word is enter a nun-successful message appears. I think what i am after is some kind of "form"?? but have search lots of sites with little success. The search does Not need to email or add information to any files, just dispaly a succsessfull or un-successful message result. thanks Hi folks - right then, think im being thick here lol <input type="hidden" name="amount" value="myvariable2"> I have a variable say called myvariable1, how do I pass that into the above so that value becomes equal to it? ie myvariable2 = myvariable1 myariable2 also needs to be/become numeric. Any help appreciated, ta karl I have an embedded flash element and calls on a URL for it's content. Code: <embed flashvars="www.url.com"........> The URL I need I have as a variable in some javascript in the header. How can I set flashvars to be the variable I need? |