Jump to content

PhilipK

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

About PhilipK

  • Birthday 01/04/1988

Contact Methods

  • Website URL
    http://PhilipK.ca

Profile Information

  • Gender
    Male
  • Location
    London, Ontario

PhilipK's Achievements

Member

Member (2/5)

0

Reputation

  1. I mainly just edit existing PHP files I have written and go through a trail and error attempts to get things working how I want them to. Are there methods for testing this kind of thing that I should learn?
  2. Hey everyone, I'm having trouble with a simple mail script. I will start with the jQuery which sends a post. $("#email").click(function () { var usersemail = $("#user-email").val() ; $.post("mailform.php", { message: 'feedback', email: 'usersemail' } ); }); }); Next is the php file mailform.php <?php //The email of the sender $email = $_POST['email']; //The message of the sender $message = $_POST['message']; //The subject of the email $subject = "Fanshawe Student Success"; $extra = $email."\r\nReply-To: ".$email."\r\n"; mail($email,$subject,$message,$extra); ?> Not sure why this isn't working? Here is a live version of the App if you would rather test it. http://philipk.ca/Interactive-survey/index.html and here is the php page. http://philipk.ca/Interactive-survey/scripts/mailform.php
  3. Hello, I need to use Jquery or plain Javascript to reverse the order of a list of <span> tags. They all have the class "tweet_text" Any suggestions are greatly appreciated.
  4. The sibling which is shown also needs to be added to the variable 'Message'.
  5. Hello I'm creating a javascript based survey which shows different answers based on the person's answers. I have working script for showing the answer based on input. $(".yes").click(function () { $(this).parent().next("p").show("fast"); }); $(".no").click(function () { $(this).parent().next("p").next("p").show("fast"); }); I need to edit this so ... $(this).parent().next("p") is appended to the end of a new variable called Message. Any ideas on how to approach this?
  6. $(".yes").click(function () { $(this).parent().next("p").show("fast"); }); $(".no").click(function () { $(this).parent().next("p").next("p").show("fast"); });
  7. Hey everyone, I'm building a Jquery based survey. It is structered a so... <form> <input type="radio" name="answer" value="Yes" id="yes" /> Yes<br /> <input type="radio" name="answer" value="No" id="no" /> No </form> <p>If Yes answer </p> <p>If No answer </p> I need a piece of javascript that when you click on yes it does --> $('p').show('slow'); <-- but I need to only select the next p If they click no I need to select only the 2nd answer.
  8. Turned out the image had some how been deleted or something but Chrome had cashed it. Hence why it only worked in chrome.
  9. Image works within Chrome but non-existent in FireFox and Safari. Please no answers saying re-upload. I'm more interested in figuring out why this is happening then fixing it. Here is the link http://www.fanshawec.ca/sites/default/files/file_attachments/switcheasy-ticker-300x250.jpg
  10. My goal is to redirect anyone who views a picture directly to that picture within the slide show. So if someone goes directly to... http://daroom.info/pics/nesengine.jpg they goto http://daroom.info/index.php?id=nesengine.jpg
  11. I tried adding your snippet to my .htaccess file but it doesn't seem to work. http://daroom.info/pics/nesengine.jpg
  12. I should also note that /pics/ is my photo directory. So I still need to be able to access them when I embed them on my own website. I just want users to be redirected to the page which the picture is located when they try to view it directly.
  13. I figured out my problem was seperate form the .htaccess as for that line of code its something I have removed as I found it it wasn't working.
  14. I need to redirect people from going to an old directory to a new one. Here is how I need to change the url. pics/$var --> index.php?id=$var How should I go about this?
  15. First methods works great thanks!
×
×
  • 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.