Jump to content

ray_nl

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by ray_nl

  1. installed an web application in my server but after everything, when i tried to goto index.php im getting this error: Fatal error: Class 'Engine_IP' not found in /var/www/html/application/modules/User/Model/DbTable/Online.php on line 33 can someone please help? how do i fix this? thanks! my website was working fine, till today
  2. ok now i got the website to work be removing this line " Options +FollowSymLinks" and i had to delete another .htaccess file for the website to display the theme, but now images dont display such as the profile image etc.. this is the .htaccess i deleted # $Id: .htaccess deny from all <Files ~ "index.php|css.php|mobile.php|lite.php|offline.html|maintenance.html"> order allow,deny allow from all </Files> <FilesMatch "\.(avi|flv|mov|wmv|wma|mp3|mp4|m4a|mkv|swf|pdf|doc|ppt|ico|jpg|jpeg|png|gif|js|css)$"> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault A29030400 <IfModule mod_headers.c> Header append Cache-Control "public" </IfModule> </IfModule> <IfModule !mod_expires.c> <IfModule mod_headers.c> Header set Expires "Sun, 1 Jan 2012 00:00:00 GMT" Header append Cache-Control "max-age=172800, public" </IfModule> </IfModule> </FilesMatch>
  3. I get a internal server error when trying to access my website. But if I delete my .htaccess file I can access the site but the images don't display. Can anyone help? here is the .htaccess file: # $Id: .htaccess <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On # Get rid of index.php RewriteCond %{REQUEST_URI} /index\.php RewriteRule (.*) index.php?rewrite=2 [L,QSA] # Rewrite all directory-looking urls RewriteCond %{REQUEST_URI} /$ RewriteRule (.*) index.php?rewrite=1 [L,QSA] # Try to route missing files RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} public\/ [OR] RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$ RewriteRule . - [L] # If the file doesn't exist, rewrite to index RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA] </IfModule> # sends requests /index.php/path/to/module/ to "index.php" # AcceptPathInfo On # @todo This may not be effective in some cases FileETag Size
  4. ray_nl

    PHP API?

    Sorry if this is in the wrong section dont know where it suppose to go. I am having trouble understanding about API (sry if it sounds too dumb). Can anyone explain what API really does? e.g. if i have a php website with features like video, and the user sends a request to the video and the video sends the data back to the user, is that what the API is? sorry im kinda new to php i just couldnt find any answer in google. thanks in advance.
  5. Thank you.. I'll have a look into that. Thanks for the help tho. This looks pretty informative and helpful: http://www.learnerassociates.net/dissthes/
  6. Lol yea I dont know much about writing a good paper for dissertation.. I do know the subject but, I need to to provide a brief from those subject to my tutor or else she aint going to be my supervisor!
  7. Hi, Yes I am suppose to cover the concepts in internet technology and cisco communications. Those are the bits that falls into my dissertation. Honestly tho I am really stressed out because I got no clue what I am going to do lol this is really new to me (I mean the dissertaion thing).
  8. Hi, I have been given my dissertation last week and its "Network Security". I have told to come with a title, topic for my dissertation but I got no clue where to start because this is my first time doing something like this. I am really intrested in knowing if anyone know or watched the movie "Die Hard: 4"? if so do you know what Justin Long does in that movie? I know he does network security but what kinda security base does he do? btw I only got 2 days to come up with a title and topic/description.. if anyone of you could help me I would appreciate it. Thanks for helping!
  9. lol.. ok but can you help me with this then? is there a php code that i can use?
  10. sorry im not really good at java or php.. is there some sort of a code that i can use to validate the submit button and still have the confirmation dialog box pop up when its all filled out and submitted?
  11. if you look into my code all the fields are javascript validated.. so.. javascript validation
  12. Hi, I am trying to add a validation to the submit button so that when someone clicks submit, the form fields must be filled in. But.. the problem is tho that I have already assigned a cofirmation dialog box so that when someone clicks on the submit a confirmation dialog box appears asking you to confirm the details.. how can I make it so that when someone clicks submit all the fields must be filled in? here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link rel="stylesheet" type="text/css" href="travel.css"/> <script type="text/javascript"> <!-- function confirmation() { var answer = confirm("Confirm Booking?") if (answer){ //I tried the below code to validate the submit button before processing, it works but the confirmation dialog box doesnt appear for some reason.// //formvalidation(car_rental);return false(); {// alert("Booking Confirmed") document.booking.submit(); } else{ window.location = "Car.html"; } } //--> </script> <title>Travel Air Home Page</title> <script language="JavaScript" src="gen_validatorv31.js" type="text/javascript"></script> <SCRIPT LANGUAGE="JavaScript" SRC="CalendarPopup.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var cal = new CalendarPopup(); </SCRIPT> </head> </head> <body> <FORM NAME="car_rental"> <div align="center"> <div id="header"> </div> <div id="topnav"> <ul> <li><a href="Home.html">Home</a></li> <li><a href="Destinations.html">Destinations</a></li> <li><a href="Flights.html">Flights</a></li> <li><a href="car.html">Cars</a></li> <li><a href="Hotels.html">Hotels</a></li> <li><a href="Insurance.html">Insurance</a></li> <li><a href="Build your own.html">Build your own</a></li> <li><a href="Special Offers.html">Special Offers</a></li> <li><a href="Reviews.html">Reviews</a></li> <li><a href="Forum.html">Forum</a></li> <li><a href="Log.html">Log-In/Register</a></li> </ul> </div> <div id="navigation"> <div id="Welcome"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="name" width="490" height="560"> <param name="movie" value="flash/header.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed name="name" src="flash/header.swf" quality="high" wmode="transparent" width="490" height="160" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash"> </embed> </object> <hr/> <hr/> <div id="Why"> <H2>Reserve Online</H2> <body> <FORM METHOD="POST" ACTION="booking_process.php" name="booking" > <div align="center"> <input type="HIDDEN" name="first_pass" value="no"> <table> <td colspan="2"><b>Customer Information</b></td> </tr> <tr> <td>First Name </td><td><input type="text" size="15" name="first_name"" maxlength="40"></td> </tr> <tr> <td>Last Name </td><td><input type="text" size="20" name="last_name" maxlength="40"></td> </tr> <tr> <td>Email </td><td><input type="text" size="20" name="email" maxlength="40"></td> </tr> <tr> <td>Address</td><td><input type="text" size="30" name="address" maxlength="80"></td> </tr> <tr> <td>Contact Number</td><td><input type="text" size="18" name="contact_no" maxlength="20"></td> </tr> <tr> <td colspan="2"> </td> </tr> <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("car_rental"); frmvalidator.addValidation("first_name","req","Please enter your First Name"); frmvalidator.addValidation("first_name","maxlen=20", "Max length for FirstName is 20"); frmvalidator.addValidation("first_name","alpha"); frmvalidator.addValidation("last_name","req","Please enter your Last Name"); frmvalidator.addValidation("last_name","maxlen=20"); frmvalidator.addValidation("email","maxlen=50"); frmvalidator.addValidation("email","req","Please enter your Email"); frmvalidator.addValidation("email","email"); frmvalidator.addValidation("address","maxlen=50"); frmvalidator.addValidation("address","req","Please enter your Address"); frmvalidator.addValidation("contact_no","maxlen=50"); frmvalidator.addValidation("contact_no","req","Please enter your Contact Number"); frmvalidator.addValidation("contact_no","num"); </script> </table> <hr/> <hr/> <table> <div id="Why"> <tr> <td colspan="2"><b>Vehicle Reservation</b></td> </tr> <tr> <td>Vehicle Type</td><td>Number of Units</td> </tr> <tr> <td>Car</td><td><select name="units_car"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Pickup</td><td><select name="units_pickup"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Van</td><td><select name="units_van"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Reservation Date </td><td> <INPUT TYPE="text" NAME="date1" VALUE="" SIZE=25> <A HREF="Car.html" onClick="cal.select(document.forms['car_rental'].date1,'anchor1','MM/dd/yyyy'); return false;" NAME="anchor1" ID="anchor1">Select a date</A> </td> </tr> </div> </table> <table> <tr> <td>Inquiries/Trip Details </td><td> </td> </tr> <tr> <td colspan="2"><textarea name="inquiries" cols="42" rows="7"></textarea></td> </tr> <tr> <td><input type="submit" onclick="confirmation()"> <input type="reset" value="clear"></td> </tr> </table> </form> </div> <hr/> <div id="loglink"> <H2>New to Travel Air?</H2> By registering with Travel Air you gain several benefits. Once registered you can use the forums, leave reviews and start building your dream holiday. All the information that is required is your name and email address. You can choose to receive free newsletters telling of new deals! Follow this link to register or if you are a member log in </div> </div> </body </html>
  13. now i keep getting a form validation error i attached a picture it says "could not get form object myform" here is the form validation code: <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("myform"); frmvalidator.addValidation("first_name","req","Please enter your First Name"); frmvalidator.addValidation("first_name","maxlen=20", "Max length for FirstName is 20"); frmvalidator.addValidation("first_name","alpha"); frmvalidator.addValidation("last_name","req","Please enter your Last Name"); frmvalidator.addValidation("last_name","maxlen=20"); frmvalidator.addValidation("email","maxlen=50"); frmvalidator.addValidation("email","req","Please enter your Email"); frmvalidator.addValidation("email","email"); frmvalidator.addValidation("address","maxlen=50"); frmvalidator.addValidation("address","req","Please enter your Address"); frmvalidator.addValidation("contact_no","maxlen=50"); frmvalidator.addValidation("contact_no","req","Please enter your Contact Number"); frmvalidator.addValidation("contact_no","num"); [attachment deleted by admin]
  14. omg! dude ur a genious!!!!!!!!! i cant thank you enough for helping me out!! thanks alot man!!!
  15. one last help.. you know that when my form page goes to the next process page i added a confirm booking button when the user presses the confirm button it will alert "confirmed" thats all. is there a way to add a code so that when the user presses "confirm" it will send me a email containing all his details? here is the javascript code: <!-- function confirmation() { var answer = confirm("Confirm Booking?") if (answer){ alert("Booking Confirmed") window.location = "Home.html"; } else{ window.location = "Car.html"; } }
  16. sorry im kinda new to this.. where do i insert that? "INSERT INTO `table_name` (`field1`, `field2`) VALUES('field1 data', 'field2 data')" will that send all the required information such as the "First Name", "Last Name", "Reservation Date" ect ect? where do i put that code? also shouldnt there be another code to connect to the mysql? thanks!
  17. im designing a simple car rental page for my project in uni, i done most of the part just need a bit more help about mysql.. im trying to do this, if the users puts all the required information in the html form fields and submit it, it will then store the information in a mysql database but im having hard time trying to do this. below is my php and html code.. can anyone of you help me out? thanks in advance this is the html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link rel="stylesheet" type="text/css" href="travel.css"/> <title>Travel Air Home Page</title> </head> </head> <body> <div align="center"> <div id="header"> </div> <div id="topnav"> <ul> <li><a href="Home.html">Home</a></li> <li><a href="Destinations.html">Destinations</a></li> <li><a href="Flights.html">Flights</a></li> <li><a href="car.html">Cars</a></li> <li><a href="Hotels.html">Hotels</a></li> <li><a href="Insurance.html">Insurance</a></li> <li><a href="Build your own.html">Build your own</a></li> <li><a href="Special Offers.html">Special Offers</a></li> <li><a href="Reviews.html">Reviews</a></li> <li><a href="Forum.html">Forum</a></li> <li><a href="Log.html">Log-In/Register</a></li> </ul> </div> <div id="navigation"> <div id="Welcome"> <H2>Car Reservation</H2> Welcome to Travel Air. Our aim is to get you the dream holiday you always wanted. We know that booking a perfect holiday is never easy, so were designed to give you as many different options as we can. If your only seeking a flight or a hotel or even insurance they can be purchased seperatly. Alternativly, build your own bundle to save money and get a complete package! <hr/> <hr/> <div id="Why"> <H2>Reserve Online</H2> <body> <FORM METHOD="POST" ACTION="booking_process.php"> <div align="center"> <input type="HIDDEN" name="first_pass" value="no"> <table> <td colspan="2">Customer Information</td> </tr> <tr> <td>First Name </td><td><input type="text" size="15" name="first_name"" maxlength="40"></td> </tr> <tr> <td>Last Name </td><td><input type="text" size="20" name="last_name" maxlength="40"></td> </tr> <tr> <td>Email </td><td><input type="text" size="20" name="email" maxlength="40"></td> </tr> <tr> <td>Address</td><td><input type="text" size="30" name="address" maxlength="80"></td> </tr> <tr> <td>Contact Number</td><td><input type="text" size="18" name="contact_no" maxlength="20"></td> </tr> <tr> <td colspan="2"> </td> </tr> </table> <hr/> <hr/> <table> <div id="Why"> <tr> <td colspan="2">Vehicle Reservation</td> </tr> <tr> <td>Vehicle Type</td><td>Number of Units</td> </tr> <tr> <td>Car</td><td><select name="units_car"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Pickup</td><td><select name="units_pickup"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Van</td><td><select name="units_van"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Reservation Date</td> <td><select name="month"> <option value="jan">January <option value="feb">February <option value="mar">March <option value="apr">April <option value="may">May <option value="jun">June <option value="jul">July <option value="aug">August <option value="sep">September <option value="oct">October <option value="nov">November <option value="dec">December </select> </td> <td> <select name="day"> <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 <option value="6">6 <option value="7">7 <option value="8">8 <option value="9">9 <option value="10">10 <option value="11">11 <option value="12">12 <option value="13">13 <option value="14">14 <option value="15">15 <option value="16">16 <option value="17">17 <option value="18">18 <option value="19">19 <option value="20">20 <option value="21">21 <option value="22">22 <option value="23">23 <option value="24">24 <option value="25">25 <option value="26">26 <option value="27">27 <option value="28">28 <option value="29">29 <option value="30">30 <option value="31">31 </select> </td> <td> <select name="year"> <option value="2001">2001 <option value="2002">2002 <option value="2003">2003 <option value="2004">2004 <option value="2005">2005 <option value="2006">2006 <option value="2007">2007 <option value="2008">2008 <option value="2009">2009 </select> </td> </tr> </div> </table> <table> <tr> <td>Inquiries/Trip Details </td><td> </td> </tr> <tr> <td colspan="2"><textarea name="inquiries" cols="42" rows="7"></textarea></td> </tr> <tr> <td><input type="submit" value="submit entries"> <input type="reset" value="clear"></td> </tr> </table> </form> </div> <hr/> <div id="loglink"> <H2>New to Travel Air?</H2> By registering with Travel Air you gain several benefits. Once registered you can use the forums, leave reviews and start building your dream holiday. All the information that is required is your name and email address. You can choose to receive free newsletters telling of new deals! Follow this link to register or if you are a member log in </div> </div> </body </html> this is the php code after the user submits the data it will bring to this process page <html> <head> <link rel="stylesheet" type="text/css" href="travel.css"/> <script type="text/javascript"> <!-- function confirmation() { var answer = confirm("Confirm Booking?") if (answer){ alert("Booking Confirmed") window.location = "Home.html"; } else{ window.location = "Car.html"; } } //--> </script> <title>Reservation Booked</title></head> <body> <div align="center"> <div id="header"> </div> <div id="topnav"> <ul> <li><a href="Home.html">Home</a></li> <li><a href="Destinations.html">Destinations</a></li> <li><a href="Flights.html">Flights</a></li> <li><a href="car.html">Cars</a></li> <li><a href="Hotels.html">Hotels</a></li> <li><a href="Insurance.html">Insurance</a></li> <li><a href="Build your own.html">Build your own</a></li> <li><a href="Special Offers.html">Special Offers</a></li> <li><a href="Reviews.html">Reviews</a></li> <li><a href="Forum.html">Forum</a></li> <li><a href="Log.html">Log-In/Register</a></li> </ul> </div> <div id="navigation"> <div id="Welcome"> <h1>Your reservation has been booked. We will get back to you soon! Thank you!</h1> </div> <hr/> <hr/> <div id="Why"> <p><strong>Your First Name:</strong><br /> <?echo "$_POST[first_name]"; ?> <p><strong>Your Last Name:</strong><br /> <?echo "$_POST[last_name]"; ?> <p><strong>Your EMail Address:</strong><br /> <?echo "$_POST[email]"; ?> <p><strong>Your Address:</strong><br /> <?echo "$_POST[address]"; ?> <p><strong>Your Contact No:</strong><br /> <?echo "$_POST[contact_no]"; ?> <p><strong>Cars:</strong><br /> <?echo "$_POST[units_car]"; ?> <p><strong>Pickups:</strong><br /> <?echo "$_POST[units_pickup]"; ?> <p><strong>Vans:</strong><br /> <?echo "$_POST[units_van]"; ?> <p><strong>Reservation Date:</strong><br /> <?echo "$_POST[month]"; ?><br /> <?echo "$_POST[day]"; ?><br /> <?echo "$_POST[year]"; ?><br /> <p><strong>Message:</strong><br /> <?echo "$_POST[inquiries]"; ?><br /></p> <hr/> <input type="button" onclick="confirmation()" value="Confirm Booking"> </body> </html>
×
×
  • 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.