Jump to content

jaic

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jaic's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. anyone else got any ideas before i divulge into the world of php again, or maybe theres a .js i can use?
  2. Hi All I have this site that uses inline frames for every content page that follows from the index.htm page I have a robots.txt file in place to stop all user-agents from crawling my site as if someone was to directly access a page other than the index.htm page, such as www.mydomain.com/page2.htm then they would only see the content on this page and not everything that goes around it (i.e. the main page with all the buttons, banner, adverts etc, etc. I know that using i-frames is not the best thing, but when the site involves a lot of updating on a day-to-day, week-to-week basis it is so much easier to have these inner pages to edit rather than editing and re-formating everything else. So, my question is... Is there a some code that can be added to each page so that if a user was to directly access my site to that specific page (/page2.htm) that they would end up on index.htm from outside of the site, such as from a link from another site or through google for example, if i was to open the web up fully to all user-agents by removing the robots.txt file? Peraps a script in the <head> section of each page would do it?? I have no idea where to start and it would be a great help if someone could show me the way! Thanks for your help in advance! Ja
  3. Thanks, with both suggestions actioned it now works perfectly thanks for your help!!!! Jai
  4. Thank you both for your help, i am going away to experiment, and ill let you know of the outcome many thanks Jai
  5. there is an NOTICE on every line that contains a VALUE in the FORM section, such as: value="<?php echo $name; ?>" and so on and so forth ...
  6. <?php if(isset($_POST['Submit'])) { $name = $_POST['name']; $tele = $_POST['tele']; $email = $_POST['email']; $comments = $_POST['comments']; $mailing = $_POST['mailing']; if($name == '' or $email == '' or $comments == '') { $err = true; $msg = 'Please complete all the required fields for us to be able to contact you.'; } else { $mailmsg = 'OceanSafe WEBSITE MAIL:' . "\n\n"; $mailmsg.= 'Name: ' . $name . "\n"; $mailmsg.= 'Tele: ' . $tele . "\n"; $mailmsg.= 'Email: ' . $email . "\n"; $mailmsg.= 'Required: ' . $required . "\n"; if($mailing == 'true') { $mailmsg.= 'Please add me to your mailing list to receive notice of offers from time to time'; } if (eregi("\r",$email) || eregi("\n",$email)){ die ("spam!"); } else { if(mail(email@domainname.co.uk,'OceanSafe - Web Enquiry Form', $mailmsg, "From: noreply@domainname.co.uk")) { header("Location: validate.htm"); } } } } ?> and in th form <form id="form2" method="post" action="contact.php"> <div> <p align="center"> <font size="2" face="Verdana"> <label for="name">Full Name:*</label><br> <input name="name" type="text" class="text" id="name" value="<?php echo $name; ?>" size="45" /><br> <label for="name">Daytime Contact Number:*</label><br> <input name="tele" type="text" class="text" id="tele" value="<?php echo $tele; ?>" size="45" /><br> <label for="email">Your Email Address:*</label><br> <input name="email" type="text" class="text" id="email" value="<?php echo $email; ?>" size="45" /><br> <label for="comments">Work Required :*</label><br> <textarea name="comments" cols="34" rows="2" class="text" id="comments"><?php echo $comments; ?></textarea><br> <label for="mailing">Add me to your mailing list</label> <input type="checkbox" name="mailing" value="true" id="mailing" /><br> <input name="Submit" type="submit" class="btn" value="SEND" /> </font> </div> </form>
  7. its seems that i keep getting the "Notice: Undefined Variable in line "265" etc ... but i have used this form time and time again on different domains without any problems
  8. Hi all Ive just done this site, and im having problems with this form... could someone take a look please... ive scoured it over and over, but to no avail.. thanks www.oceansafe.co.uk/contact.php Jai
  9. do you mean if all the <font></font> areas etc are removed to the outside of the <form> then this would suffice, because even in its simplest form, just php, i was gettin the same problems, whether or not i extracted from another working site or wrote the whole thing again. i don't know, it just seems to be a problem on this domain
  10. Hi All Im having a dispute with my web hosting company as to which server a simple mail response form in php should be assigned to. currently this one: www.webxsite.co.uk.contact.php is working fine, ON WINDOWS SERVER using the same php script on www.oceansafe.co.uk/contact.php there is an Undifined Error script used is: <?php if(isset($_POST['Submit'])) { $name = $_POST['name']; $tele = $_POST['tele']; $email = $_POST['email']; $required = $_POST['required']; $comments = $_POST['comments']; $mailing = $_POST['mailing']; if($name == '' or $email == '' or $comments == '') { $err = true; $msg = 'Please complete all the required fields for us to be able to contact you.'; } else { $mailmsg = 'OceanSafe WEBSITE MAIL:' . "\n\n"; $mailmsg.= 'Name: ' . $name . "\n"; $mailmsg.= 'Tele: ' . $tele . "\n"; $mailmsg.= 'Email: ' . $email . "\n"; $mailmsg.= 'Required: ' . $required . "\n"; if($mailing == 'true') { $mailmsg.= 'Please add me to your mailing list to receive notice of offers from time to time'; } if (eregi("\r",$email) || eregi("\n",$email)){ die ("spam!"); } else { if(mail('info@oceansafe.co.uk','OceanSafe - Web Enquiry Form', $mailmsg, "From: noreply@oceansafe.co.uk")) { header("Location: validate.htm"); } } } } ?> AND THEN FOR THE FORM LATER ON: <form id="form2" method="post" action="contact.php"> <div> <p align="center"> <label for="name"><font face="Verdana" size="2">Full Name</font></label><font size="2" face="Verdana">:*<br> </font><font face="Verdana" size="1"> <input name="name" type="text" class="text" id="name" value="<?php echo $name; ?>" size="45" /><br> </font><font face="Verdana"><label for="name"> <font size="2"> Daytime Contact Number:*<br> </font></label></font><font face="Verdana" size="1"> <input name="tele" type="text" class="text" id="tele" value="<?php echo $tele; ?>" size="45" /></font><font size="2" face="Verdana"> </font> <br> </font><label for="email"><font size="2" face="Verdana">Your Email Address:*<br> </font></label><font face="Verdana" size="1"> <input name="email" type="text" class="text" id="email" value="<?php echo $email; ?>" size="45" /><br> </font><label for="comments"><font face="Verdana" size="2">Work Required</font></label><font size="2" face="Verdana">:*<br> </font><i><font face="Verdana" size="1"> <textarea name="required" cols="34" rows="2" class="text" id="required"><?php echo $required; ?></textarea><br> </font></i><label for="mailing"><font face="Verdana" size="2">Add me to your mailing list</font></label><font size="2" face="Verdana"> </font><font face="Veranda"><font size="1"> <input type="checkbox" name="mailing" value="true" id="mailing" /></font><font size="2"><br> </font></font><i><font size="1" face="Veranda"> <input name="Submit" type="submit" class="btn" value="SEND" /></font></div> </form> Any Ideas?? Thanks
  11. ahh... well thanks for them two comments, i shall get back to my hosting company because i presumed the same thing... ill leave it at that, because i thought i was going mad for a second! cheers everyone, thanks for your help! Jai
  12. Hi Folks Ive been using php email response forms time and time again, but for some reason this one isnt working I have changed the format, layout etc, time and time again, yet still get the same error message. I even uploaded an old form that is working in its entirity to a new domain that i am developing for someone, and it still gave the same error message... so now im stumped because ive looked at it over and over and over again! Has anyone come accross this before, ((and also if you go onto the site is there any background colour mismatch from me using .png and .gif (should be all standard white and no off colouring... you'll see what i mean if it happens)) Site is www.oceansafe.co.uk and the php page is www.oceansafe.co.uk/contact.php Thanks again for your help Jai
  13. well i have only just started with this php and have a website that has a simple login page on it, i am having parsing errors and cant figure out how to make the background black and the writing orange, as in the script above.  i had to use text books to design this login screen which works, im just looking to refine it. so. really what, two lines of script do i need before character to define the background colour and the font colour?? thanks
  14. Hi folks can anyone change this to php for me please <body bgcolor="#000000"> <div style="position: absolute; width: 143px; height: 31px; z-index: 1; left: 240px; top: 8px; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" id="lazer"> <font color="#FB9813">ACCESS DENIED</font></div> many thanks for your help!!!
  15. thanks for your reply but . . .  :-[ that removes the switch between the two outcomes of accept and reject, they are then strung together. . . perhaps, is there a way of making the unsuccessful entry response show a small phrase under the login box, such as: " Not Recognised ", try again??? Or some thing like this? Jai
×
×
  • 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.