Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by garethwigan

  1. Hi guys i am trying to create a function called enterName which will have two parameters firstname and lastname. How can i make the function create a greeting message with the first and last name and so it returns in an alert box? Thanks
  2. Thanks for your help. I will have a look at the resources. Yes it all has to be in action script files and called in and they are not very large pages, not that much on them to be honest. I may have to get back to you if i get stuck on something again. Thanks:)Gareth
  3. Great its all working now. Thanks for your help
  4. I have this contact form and really ned help with my php file. What would i need in my SendContact.php file in order for this form to work?? Thanks <div id="left"><div id="contact_form"><font size="+2"><b>Contact us?</b></font><p><font size="-2">Please use the form below to send us a message.</p></font><form method="post" onsubmit="return sendContact();" action="sendContact.php"><p><label for="name" id="lname">Full name:</label><input type="text" class="text" name="name" id="name" onfocus="input_focus('name');" onblur="input_blur('name');" /></p> <p><label for="email" id="lemail">Email address:</label><input type="text" class="text" name="email" id="email" onfocus="input_focus('email');" onblur="input_blur('email');" /></p><div class="x"></div><p class="error" id="email-error">You must enter your email address.</p> <p><label for="category" id="lcategory">Category:</label><select name="category" id="category" onfocus="input_focus('category');" onblur="input_blur('category');"><option value="software">Website Related</option><option value="hardwae">Content Related</option><option value="consulting">Complaint Related</option></select></p> <p><label for="message" id="lmessage">Message:</label><textarea name="message" id="message" onfocus="input_focus('message');" onblur="input_blur('message');"></textarea></p><div class="x"></div> <div class="x"></div> <input type="submit" class="submit" name="send_contact" value="Send" /> </form> </div> <div id="message_sent" style="display:none;"><h1>Your message has been sent</h1><p>We'll contact you in a shortest possible time.</p><p>You can now <a href="index.html" class="read-more">go back</a> to home page.</p></div> </div> </body></html>
  5. I have been given a flash website to amend. It has a home page and videos page already done. I have to add a links page, books page and a social page with a twitter feed. It all has to be done using OOP in separate As files. Can anybody give me some guidelines on how to do this correctly? Thanks Guys
  6. Hi. Thanks for the reply. I dont get any errors the page opens up and says message has been sent but it never arrives. Yes thats the actual script. Thanks
  7. My php contact form wont send the emails to my account?This is my contact from page<table width="400" border="0" align="center" cellpadding="3" cellspacing="1"><tr><td><h2><strong>Contact Form </strong></h2></td></tr></table><table width="400" border="0" align="center" cellpadding="0" cellspacing="1"><tr><td><form name="form1" method="post" action="send_contact.php"><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td width="16%">Subject</td><td width="2%">:</td><td width="82%"><input name="subject" type="text" id="subject" size="50"></td></tr><tr><td>Detail</td><td>:</td><td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td></tr><tr><td>Name</td><td>:</td><td><input name="name" type="text" id="name" size="50"></td></tr><tr><td>Email</td><td>:</td><td><input name="customer_mail" type="text" id="customer_mail" size="50"></td></tr><tr><td> </td><td> </td><td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td></tr></table></form></td></tr></table><p> </p></form>This is my php code for the contact form<?php// Contact subject$subject ="$subject"; // Details$message="$detail";// Mail of sender$mail_from="$customer_mail"; // From $header="from: $name <$mail_from>";// Enter your email address$to ='gareth.joynt@go.edgehill.ac.uk';$send_contact=mail($to,$subject,$messa…// Check, if message sent to your email // display message "We've recived your information"if($send_contact){echo "We've recived your contact information";}else {echo "ERROR";}?>Please help thanks
  • Create New...