Jump to content

ben3001

Members
  • Posts

    213
  • Joined

  • Last visited

Posts posted by ben3001

  1. now what i wanted to do is have a calendar, users click a link that opens up a calendar and they choose a date from the calendar which automatically is entered into the date form.i had a script eralier but that did not seem to work any ideas?

  2. oops no worries it did work...this morning i opened my email to find 38 emails one of them being

    from:scott@scott.comCustomer Name: Scott Wilson Customer Number: 3165165161 People expected: 11-15Date booked for: 61561561 Customer Comments: Test
  3. i think thats actually a hard question...it really depends on the purpose of the site, if its a professional site most definately in my opinion id use very limited flash, however if it is a leisure site more flash would be appropriate

  4. ok i got my booking form http://music0202.atspace.com/online2.htmheres the php for my booking form:

    <?php	$successPage = "http://medussa.atspace.com/contactok.html";	$failPage = "http://medussa.atspace.com/contactfail.html";	$targetEmail = "b_e_n04@hotmail.com";	if( !isset( $_POST[ 'sendcontact'])) {  header( 'Location: ' . $failPage);    exit( );	} else {  $contactName = strlen( $_POST[ 'custName']) > 0  ? $_POST[ 'custName'] : false;                 if( !eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $_POST[ 'custEmail']))            $contactEmail = false;        else               $contactEmail = $_POST[ 'custEmail'];  $contactPhone = isset( $_POST[ 'custContact']) && strlen( $_POST[ 'custContact']) > 10 ? $_POST[ 'custContact'] : false;  $contactGuests = isset( $_POST[ 'custNum']) ? $_POST[ 'custNum'] : false;  $contactDate = isset( $_POST[ 'custDate']) ? $_POST[ 'custDate'] : false;        $contactMessage = strlen( $_POST[ 'custComment']) > 5 ? $_POST[ 'custComment'] : false;                if( $contactName && $contactEmail && $contactPhone && $contactGuests && $contactDate) {            // We want to process this request and try and send it            $header = 'From:' . $contactEmail . "\r\n" .  // This allows us to reply to the message directly 	 'Reply-To: ' . $contactEmail . "\r\n" .  	 'X-Mailer: PHP/' . phpversion( );   	  	 $message = "Customer Name: " . $contactName . "\n" .       "Phone #: " . $contactPhone . "\n" .       "Email: " . $contactEmail . "\n" .       "Estimated Guests: " . $contactGuests . "\n" .       "Date Requested: " . $contactDate . "\n" .      "Comments: \n" . $contactMessage . "\r\n";       	 if( mail( $targetEmail, "Order Request", $message, $header)) {                header( 'Location: ' . $successPage);            }else{                header( 'Location: ' . $failPage);                                exit( );            }              } else { 	 header( 'Location: ' . $failPage); 	  	 exit( );  }	}?>

    when i try to submit the form im taking to my error page, would anyone know the problem with my php code or even htmlid really appreciate if someone could find out my problem please

  5. my bad your a star cheers

    Your page has 2 forms tags on it, one above the <html> :) remove it and it's matching </form> and then add the action to the form in the body.
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><title>Select Date</title><script language="javascript" src="cal2.js"></script><script language="javascript" src="cal_conf2.js"></script></head><body bgcolor="#000000">	<div>        <b><font color="#FFFFFF" size="4" face="Verdana">Book Online</font></b>        <p><b><font size="1" color="#FFFFFF" face="Verdana">Use the booking form        below to submit your booking for a night out at Medussa Brixton. Please        ensure all fields are filled out correctly. You will be contacted within        twenty-four hours via phone to confirm your booking. Please leave any        additional information in the comments box.</font></b></p>         	</div><form name="sampleform" action="http://www.hypersonicscream.com/medussa.php" method="post">	<div>        <p><font face="Verdana" size="2"><font color="#FFFFFF">  <span>Name</span>        </font>  <span><input type="text" name="custName" size="25" maxlength="35" /></span>        </font>	</div>	<div>        <font face="Verdana" size="2">  <span><font color="#FFFFFF">E-Mail Address</font></span>  <span><input type="text" name="custEmail" size="35" maxlength="100" /></span>        </font>	</div>	<div>        <font face="Verdana" size="2"><font color="#FFFFFF">  <span>Telephone</span>        </font>  <form action="http://www.hypersonicscream.com/medussa.php" method="post">  <span><input type="text" name="custContact" size="20" maxlength="20" /></span>        </font>	</div>	<div>        <font face="Verdana" size="2"><font color="#FFFFFF">  <span># People</span>        </font>  <span><select name="custNum">    <option value="1-10">1-10</option>    <option value="11-15">11-15</option>    <option value="16-20">16-20</option>    <option value="21-30">21-30</option>    <option value="31-40">31-40</option>    <option value="41-50">41-50</option>    <option value="51-60">51-60</option>    <option value="61-70">61-70</option>    <option value="71-80">71-80</option>    <option value="81-90">81-90</option>    <option value="91-100">91-100</option>    <option value="100+">100+</option>     </select>  </span>        </font>	</div>	<div>        <font color="#FFFFFF" face="Verdana" size="2">  <span>Date</span>        </font><input type="text" name="custDate" size=20><font face="Verdana" size="2"><span><font color="#FFFFFF">(DD/MM/YY)</font></span></font><small><a href="java script:showCal('Calendar1')">Select Date</a></small>	</div>	<div>        <font face="Verdana" size="2"><font color="#FFFFFF">  <span>Comments</span>        </font>  <span>  	<input type="text" name="custComment" size="40" maxlength="255" /></span>        </font>	</div>	<div>  <span>            <font face="Verdana" size="2">  	<input type="submit" name="submit" value="Send" />  	<input type="reset" name="Reset" value="Reset" />            </font>  </span>	</div><p> </p></form></body></html>

  6. I have a booking form on my sitehttp://medussa.atspace.com/medussa.html --> book onlinebut what i think well be a great feature for users to do is be able to select the date from like a calendar at the side so they are garunteed to select the right date, but i have no idea of how to complete my idea and was wondering is there anyone that could assit mecheers in advance ben

  7. thanks for your help mate. the simplest things are not always obvious :)

    Your html code has you nesting the "info" iframe inside the "content" iframe and not even closing one of them - probably just a mistake... That is your problem... IE forgives you ... FF doesn't...Just fix it so that you have to separate iframe elementsYour original code (formatted for easy viewing):
    <center>    <iframe src="../months/blank.htm" name="calendar" frameborder="0"  scrolling="auto" width="200" height="230"></center>             <iframe src="../months/blank.htm" name="info" frameborder="0"  scrolling="auto" width="200" height="230">    </iframe>

    How it should be:

    <center>    <iframe src="../months/blank.htm" name="calendar" frameborder="0"  scrolling="auto" width="200" height="230">    </iframe></center>         <iframe src="../months/blank.htm" name="info" frameborder="0"  scrolling="auto" width="200" height="230">    </iframe>

  8. thanks a million Aphotic, your a diamond. now i was wondering is there anyway to get your website scrollbars so they appear coloured in FF, becuase in i.e there fine but in FF there not

    body {background-color: #000000;margin: 0px;}a {color: #E55E5N;}a:visited {color: #86B300;}a:hover {color: #E2FF8A;}a:active {color: #E55E5N;}

    First, you need either 3 or 6 hexadecimals numbers, so replace your colors or add the correct number in "N". Also, W3C suggests that whenever you present the attribute "color" or "background-color", that you would follow it with its pair, i.e.:

    body {background-color: #000000; color: #FFFFFF; margin: 0px;}

    or

    a:hover {color: #E2FF8A; background-color: #000000;}

    Finally, adjusting your scrollbar is not actually a universal CSS property, it's actually a MS properties. Also, make sure that NONE of your code is in caps, for the exception of  hexadecimals numbers. If you really want to, though, the proper code alteration for CSS2 for the scrollbar would be:

    body{scrollbar-face-color:#A2D800;scrollbar-arrow-color:#000000;scrollbar-track-color:#333333;scrollbar-shadow-color:'#000000';scrollbar-highlight-color:#NNNNNN;scrollbar-3dlight-color:#NNNNNN;scrollbar-darkshadow-Color:#NNNNNN;}

    Whereas "N" is replaced with the proper hexadecimals numbers for the color.Understand what I'm saying?~Aphotic

  9. how would i change this css1 to css2 code?

    BODY{scrollbar-face-color:#A2D800;scrollbar-arrow-color:#000000;scrollbar-track-color:#333333;scrollbar-shadow-color:'#000000';scrollbar-highlight-color:'';scrollbar-3dlight-color:'';scrollbar-darkshadow-Color:'';body {	background-color: #000000;	margin: 0px;	}	a {	color: #E55E5;}a:visited {	color: #86B300;}a:hover {	color: #E2FF8A};}a:active {	color: #E55E5;}

    thanks for help inadvance ben

  10. IE and FF render CSS diffrently.IE still uses CSS1 while FF uses CSS2. They both have some differences in JavaScript objects and methods as well.

    i understand...so ill change the css to css2 and see how it looks thanks for that, what would be the difference and how would it be changed then? ill post in css forum
  11. Hi peoplei have made this site which is viewable here: http://medussa.atspace.com/medussa.html its a nightclub siteIf page does not display refresh it a view times, its on a free host and sometimes takes time to load. AnywaysThe problem is when i view it in i.e it displays perfectly i cant ask for any better, the very limited css i use works perfectly, however when i view the site in firefox, my css doesnt seem to work anywherealso on my calendar page it automatically opens up at the month july in firefox, but in ie it opens up with a blank area how it should do, would anyone know the reason for that?i was going to post this in css but it seems to be in my html. maybe im just being stupid and will see where it goesit will be most greatful if someone could assit me in my problems im having.thanks in advance ben

  12. Hi peopleim Ben, im pretty new to html and have been using w3c for a long time as a good source of reference, but have only recently found the forumthis looks like a great place so howdeh all!!!!

×
×
  • Create New...