User Profile

Collapse

Profile Sidebar

Collapse
Jordan Boden
Jordan Boden
Last Activity: Apr 28 '11, 05:30 PM
Joined: Dec 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to use JavaScript to select a particular CSS file depending on the browser

    Hi does anybody know how to use JavaScript to detect a browser, and as a result, select the appropriate CSS file to match with that browser?

    I know an if statement can be used for Internet Explorer like so..

    Code:
    <!--[if IE]>
        <link rel="stylesheet" type="text/css" href="ie.css" />
    <![endif]-->
    But I would like to use JavaScript...
    See more | Go to post

  • Hey guys,

    Thanks for the advice I chose to echo the word and make it into a link.

    Thanks
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    started a topic HTML <option> Tag in a if statement?
    in PHP

    HTML <option> Tag in a if statement?

    I was wondering if it was possible to apply a selection of options inside an if statement.

    I am trying to create a form that when a user selects the ride, roller coaster, that the option to choose from 48 seats is available as the next option. But if the user selects the ride, ice blast, then i want the option to choose from 24 seats as the next option instead of 48.
    Would I use php for this?
    See more | Go to post

  • Basically I want to display a button that will go back a page if a seat has been taken. And I want a different button to be displayed if a seat is free to allow the user to proceed to payment. So I'm trying to put a submit button that will allow the user to go back to the required page if the seat they have chosen has been taken. I am using an if statement for this
    See more | Go to post

    Leave a comment:


  • <a> and nested <input> button not working as expected

    Hi. I'm trying to use a link in a echo statement. The code below is currently in a if statement so that if a seat is free then a button is displayed to allow the user to proceed to pay for the seat. However the button doesn't work when clicked and I'm struggling to find out why. Any help would be much appreciated!


    Code:
    echo "<a href=\"http://lst3002-15s1-web.ced.bolton.co.uk/~ed345/payment.html\"><input
    ...
    See more | Go to post

  • Jordan Boden
    replied to passing variables with forms
    in PHP
    Thanks guys for your help it worked! The only problem I have now is when the user submits the details a message saying "Message delivery failed..." appears even though an email is sent with the appropriate details which is confusing. Here is my code...

    Code:
    $to="\nE-Mail is: ".$email;
    $subject="Ticket Confirmation";
    $message="Thank you for booking with us.\n\nYou have chose to ride:
    ...
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    replied to passing variables with forms
    in PHP
    I've figured out how to use sessions however I am having problems putting the variables into the php mail function.

    Code:
    <?php
    
    session_start();
    
    print $_SESSION['email'];
    print "<br />";
    print $_SESSION['seatnumber'];
    print "<br />";
    print $_SESSION['time'];
    print "<br />";
    print $_SESSION['rideselection'];
    ...
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    replied to passing variables with forms
    in PHP
    In what way would I use sessions JKing? would I use sessions for each variable name?
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    replied to passing variables with forms
    in PHP
    Thanks for the reply johny10151981 much appreciated but that didn't seem to work either
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    started a topic passing variables with forms
    in PHP

    passing variables with forms

    Hi. I'm struggling to pass variables through various web forms.

    On my first php page I have tried to use:

    Code:
    <input type="hidden" name="email" value="<$php $_POST["email"]; print "$email"; ?>" />
    I am passing four variables from my first html page to the first php page. From here I want to pass the variables to another...
    See more | Go to post

  • Jordan Boden
    replied to need help with an if statement
    in PHP
    Thanks very much AutumnsDecay your answer worked for me!
    See more | Go to post

    Leave a comment:


  • Jordan Boden
    started a topic need help with an if statement
    in PHP

    need help with an if statement

    Hi,

    I have a problem trying to prevent a time slot and seat number being double booked. I am using PHP and MySQL for this. Currently I have no errors concerning variable names or issues with inserting data into the database. The only problem I seem to have involves preventing a certain seat number and time from being double booked. I have tried numerous things and I think the problem lies within my 'if' statement so i have shown a...
    See more | Go to post

  • I have a problem preventing double booking of a ride using php and mysql

    Hi,

    I have a problem trying to prevent a time slot and seat number being double booked. I am using PHP and MySQL for this. Currently I have no errors concerning variable names or issues with inserting data into the database. The only problem I seem to have involves preventing a certain seat number and time from being double booked. I have tried numerous things and I think the problem lies within my 'if' statement so i have shown a...
    See more | Go to post
No activity results to display
Show More
Working...