Jump to content

deansp2001

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

deansp2001's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Im looking to create a system that will generate unique urls for 1 certain flash movie we have. And then these unique urls will be sent out and we need to be able to track who watches the movie and for how long. Can this be done with PHP and if so where should I start looking as far as tutorials/examples of this kind of thing so I can learn more. Many thanks!
  2. OK, thank you. Here you go: Javascript: <script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> HTML: <table width="673" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href="index.html"><img src="images/nav_05.png" alt="Home" width="112" height="27" border="0" id="Image1" onmouseover="MM_swapImage('Image1','','images/nav2_05.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> <td><a href="latestevents.html"><img src="images/nav_06.png" alt="Latest_Events" width="112" height="27" border="0" id="Image2" onmouseover="MM_swapImage('Image2','','images/nav2_06.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> <td><a href="topselling.html"><img src="images/nav_07.png" alt="Top_Selling" width="112" height="27" border="0" id="Image3" onmouseover="MM_swapImage('Image3','','images/nav2_07.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> <td><a href="venues.html"><img src="images/nav_08.png" alt="Venues" width="112" height="27" border="0" id="Image4" onmouseover="MM_swapImage('Image4','','images/nav2_08.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> <td><a href="frontrow.html"><img src="images/nav_09.png" alt="Front_Row" width="112" height="27" border="0" id="Image5" onmouseover="MM_swapImage('Image5','','images/nav2_09.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> <td><a href="contact.html"><img src="images/nav_10.png" alt="Contact" width="113" height="27" border="0" id="Image6" onmouseover="MM_swapImage('Image6','','images/nav2_10.png',1)" onmouseout="MM_swapImgRestore()" /></a></td> </tr> </table>
  3. Hi I am trying to make a navigation bar for my site. I know how to make one that has rollovers when the mousr hovers over the image. What I need to know is how to make one that does this but when the user clicks on that link the rollover image changes to the rollover image and stays like that. Sorry for the long winded explaination but for the life of me I cant find the right "term" for what this is called and therefore cant find anything on the net about it! Ive tried using the Dreamweaver "navigation bar" element but that doesnt seem to do what im after. Thanks.
  4. Can anyone help please?
  5. Works a treat - thanks very much for your assistance!
  6. Thanks for your help, Ive added <form> tags to the start and end, but that diddnt make a difference, I then changed "onClick" to "onSubmit" but this made it not work at all. How can I re write it without Javascript?
  7. Hi Please can you look at http://www.dacon.co.uk The search function at the top of the site only works when the user presses "enter" after they have typed in what they want to search for. If the user clicks "go" then nothing happens. The code used for this part of the site is as follows <input type="text" name="keywords222" id="keywords2222" style="border:1px #333333 solid" value="Search this site..." onFocus="if(this.value=='Search this site...'){this.value=''}" onBlur="if(this.value==''){this.value='Search this site...'}" onKeyDown="if(window.event.keyCode==13){location.href='search4.php?keywords='+this.value;}" /> <input name="button222" type="button" style="border: 1px #ffffff solid;background-color:#2D76BB;color:#ffffff;font-weight:bold" onClick="location.href='search4.php?keywords='+document.getElementById('keywords').value;" value="Go" /> Doean anyone have any ideas as to what im doing wrong? Thank you.
  8. Sorry - here it is - I did not write this code. <? $from_address = "[email protected]"; $required_on = "no"; $required_errorpage = "error.html"; $override = "no"; $incoming_mailto = "[email protected]"; $incoming_subject = "Dacon request Call"; $incoming_thanks = "requestcall2.php"; $ban_ip_on = "no"; $ban_ip_list = "111.222.33.55,11.33.777.99"; $secure_domain_on = "no"; $autorespond_on = "no"; $autorespond_subject = "Car Retail Solutions - Thank you"; $autorespond_from = "[email protected]"; $autorespond_contents = "Dear Sir/Madam Thank you for reserving your place at the Car Retail Solutions seminar on the 2nd June 2007 If you need any more information please do not hesitate to contact us"; $autorespond_mailto_field = "Email"; if($_SERVER['REQUEST_METHOD'] == "GET") { echo " <html> <head><title>Webligo PHP DynaForm is installed correctly.</title></head> <body> <font style='font-family: verdana, arial; font-size: 9pt;'> <b>DynaForm is installed correctly.</b></font><br> <font style='font-family: verdana, arial; font-size: 8pt;'> DynaForm Easy PHP Form Mailer was created by <a href='http://www.webligo.com'>Webligo Developments</a>. </font> </body></html> "; exit(); } $incoming_fields = array_keys($_POST); $incoming_values = array_values($_POST); if($override == "no") { $incoming_mailto = $_POST['rec_mailto']; $incoming_subject = $_POST['rec_subject']; $incoming_thanks = $_POST['rec_thanks']; } $incoming_mailto_cc = $_POST['opt_mailto_cc']; $incoming_mailto_bcc = $_POST['opt_mailto_bcc']; $form_url = $_POST[HTTP_REFERER]; if($secure_domain_on == "yes") { $form_url_array = parse_url($form_url); $form_domain = $form_url_array[host]; if($form_domain != $_SERVER[HTTP_HOST]) { echo "<h2>DynaForm Error - Invalid Domain</h2> You have accessed DynaForm from an external domain - this is not allowed.<br> You may only submit forms to a DynaForm file that exists on the same domain name.<br> If you believe to be receiving this message in error, please refer to your readme.txt file. <br><br>"; $error = "yes"; } } if($incoming_mailto == "") { echo "<h2>DynaForm Error - Missing Field</h2> Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include the required \"<b>rec_mailto</b>\" field within the form. This field specifies who the email will be sent to. <br><br> This should look like:<br> &#060;input type=\"hidden\" name=\"rec_mailto\" value=\"[email protected]\"&#062; <br><br> If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br> "; $error = "yes"; } if($incoming_subject == "") { echo "<h2>DynaForm Error - Missing Field</h2> Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include the required \"<b>rec_subject</b>\" field within the form. This field specifies the subject of the email that will be sent. <br><br> This should look like:<br> &#060;input type=\"hidden\" name=\"rec_subject\" value=\"CRS Seminar 2nd June - Confirmation\"&#062; <br><br> If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br> "; $error = "yes"; } if($incoming_thanks == "") { echo "<h2>DynaForm Error - Missing Field</h2> Your form located at <a href='$form_url'>$form_url</a> does not work because you forgot to include the required \"<b>rec_thanks</b>\" field within the form. This field specifies what page the user will be taken to after they submit the form. <br><br> This should look like:<br> &#060;input type=\"hidden\" name=\"rec_thanks\" value=\"thanks.html\"&#062; <br><br> If you are still confused, please refer to the readme.txt for more information and examples.<br><br><br><br> "; $error = "yes"; } if($ban_ip_on == "yes") { if(strstr($ban_ip_list, $_SERVER[REMOTE_ADDR])) { echo "<h2>DynaForm Error - Banned IP</h2> You cannot use this form because your IP address has been banned by the administrator.<br> "; $error = "yes"; } } if($error == "yes") { exit(); } $message = "Please call this customer ASAP \n\n"; for ($i = 0; $i < count($incoming_fields); $i++) { if($incoming_fields[$i] != "rec_mailto") { if($incoming_fields[$i] != "rec_subject") { if($incoming_fields[$i] != "rec_thanks") { if($incoming_fields[$i] != "opt_mailto_cc") { if($incoming_fields[$i] != "opt_mailto_bcc") { if($required_on == "yes") { $sub = substr($incoming_fields[$i], 0, 2); if($sub == "r_") { if($incoming_values[$i] == "" OR !isset($incoming_values[$i]) OR $incoming_values[$i] == " ") { header("Location: $required_errorpage"); exit(); }}} $message .= "$incoming_fields[$i]:\n$incoming_values[$i]\n\n"; }}}}}} $headers = ""; if($from_address != "") { $headers .= "From: $from_address\r\n"; } if($incoming_mailto_cc != "") { $headers .= "Cc: $incoming_mailto_cc\r\n"; } if($incoming_mailto_bcc != "") { $headers .= "Bcc: $incoming_mailto_bcc\r\n"; } mail($incoming_mailto, $incoming_subject, $message, $headers); if($autorespond_on == "yes") { $autorespond_mailto = $_POST[$autorespond_mailto_field]; $autorespond_headers = "From: $autorespond_from"; mail($autorespond_mailto, $autorespond_subject, $autorespond_contents, $autorespond_headers); } header("Location: $incoming_thanks"); ?>
  9. Hi Ive got a script running that allows users to enter information which we receive via email. I want to put a drop down menu on the form where users select "Sales/Support/Marketing" etc. How do I amend the PHP code so that it sends the email to the selected department? Thank you
  10. Hi, im new to PHP and doing my best to learn as much as possible. So far Ive installed quite a few ready made scripts and edited them with success on a number of websites but for this new site Im not sure in what direction to head. What sort of script should I be looking for that will do the following? Theres so many available that im not to sure on what it would be called and what to search for! The user needs to be able to fill in an HTML form on the site which will then email the information to us and send out an auto responder with a link to download the trial software (so far so good, I can make a script that does this with an auto responder thinghy). But we also need the information entered on the form to be sent to an sql database so that we can monitor when the 30 day period is over and we can contact the user to see what they thought of the trial software. Any ideas on the best way for a newbie to do this would be great. Thank you.
  11. Thanks for the advice Radar. Sorry I should of mentioned from the start that I am still very much learning PHP, would you know of any tutorials on this or a similar subject as im not too sure on how to implement the code that you have put below, to be honest im totally lost! My experience at the moment consists of simple html forms with a php page that emails the webmaster and sends a confirmation email to the user. Thanks everyone!
  12. Hi Im not sure if im posting in the right area, I have a slight problem with a page I am trying to make. Its is a web form for users to enter infomation to register for attending a free event, simple so far. At the end of the form is a question to ask if they require anybody else to attend the event. If the user clicks no, then all they need to do is click submit and there info is sent off and they receive a confirmation email. If the user clicks yes, another part of the form appears asking them for the next persons details and advising them that it will cost £50 for this additional person to attend. Once the user enters these details they will also need to be sent an confirmation email, but also when they click submit they need to be taken to another page to enter there credit card details (which will be sent to NoChex or similiar system). So basicilly I need to know how to code a form that carries out to functions with the hit of 1 button, depending on the information they entered, I dont know if this is possible, but any ideas or thoughts would be great. Thnk you
×
×
  • 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.