Jump to content

divinedesigns1

Members
  • Posts

    1,200
  • Joined

  • Last visited

Everything posted by divinedesigns1

  1. umm can i ask, why you want to disable F5?
  2. it will have security dude/girl, im just making sure everything else work -_-anyway, this is my latest code from lastnight before i fell asleep<?phpinclude_once "myconnect.php";if(isset($_POST['submit'])){ $firstname = @$_POST['firstname']; $lastname = @$_POST['lastname']; $email = @$_POST['email']; $company = @$_POST['company']; $mobile = @$_POST['mobile']; $output_form = false;}if(empty($firstname) && empty($lastname) && empty($email) && empty($mobile)){ echo "Please Fill In The Following Fields: " . "<br />" . $firstname . "<br />" . $lastname . "<br />" . $email . "<br />" . $company . "<br />"; echo "Thank You"; $output_form = true;}if(!empty($firstname) && empty($lastname) && empty($email) && empty($mobile)){ echo "Please Fill In The Following Fields: " . "<br />" . $lastname . "<br />" . $email . "<br />" . $mobile . "<br />"; echo "Thank You"; $output_form = true;}if(!empty($firstname) && !empty($lastname) && empty($email) && empty($mobile)){ echo "Please Fill In The Following Fields: " . "<br />" . $email . "<br />" . $mobile . "<br />"; echo "Thank You"; $output_form = true;}if(!empty($firstname) && !empty($lastname) && !empty($email) && empty($mobile)){ echo "Please Fill In The Following Fields: " . "<br />" . $mobile . "<br />"; echo "Thank You"; $output_form = true;}else { $output_form = true;}if(!empty($firstname) && !empty($lastname) && !empty($email) && !empty($mobile)){ $query = "INSERT INTO demo(first_name, last_name, phone, email, company_name)" . "VALUE('$firstname', '$lastname', '$mobile', '$email' , '$company')";$result = mysqli_query($con, $query);}mysqli_close($con);if($output_form){?><form action="<?php $_SERVER['PHP_SELF']; ?>" method="post"><fieldset><legend>Fill to Win Promotion</legend><table align="center" border="0" width="284"><tr><td width="128" align="right"><label for="fname">First Name: </label></td><td width="146"><input type="text" name="firstname" id="firstname" value="<?php echo '$firstname'; ?>" /></td></tr><tr><td align="right"><label for="lname">Last Name: </label></td><td><input type="name" name="lastname" id="lastname" value="<?php echo '$lastname'; ?>" /></td></tr><tr><td align="right"><label for="mobile">Mobile/Phone: </label></td><td><input type="text" name="mobile" id="mobile" value="<?php echo '$mobile'; ?>" /></td></tr><tr><td align="right"><label for="email">Email Address: </label></td><td><input type="email" name="email" id="email" value="<?php echo '$email'; ?>" /></td></tr><tr><td align="right"><label for="company">Company Name: </label></td><td><input type="text" name="company" id="company" /></td></tr><tr><td></td><td><input type="submit" name="submit" id="submit" value="Submit" /></table></form><?php}?>
  3. i did what you said to do but im still getting the same errors
  4. ok thanks, and i fixed the problem with a "@" before the "$_POST" which work, it seem that wamp have a little problem. thanks again dsone
  5. i need a little help here, i keep getting this error from the localhost i checked both the php and html and everything match up and is saved inside of the www folder This is the php "its just a small demo"<?phpinclude_once "myconnect.php";$fname = $_POST['fname'];$lname = $_POST['lname'];$email = $_POST['email'];$company = $_POST['company'];$mobile = $_POST['mobile'];$query = "INSERT INTO demo(first_name, last_name, phone, email, company_name)" . "VALUE('$fname', '$lname', '$mobile', '$email' , '$company')";$result = mysqli_query($con, $query);mysqli_close($con);echo "Thank You For Filling Out the Fill2Win form";?> and this is the html <form action="" method="post"><fieldset><legend>Fill to Win Promotion</legend><table align="center" border="0" width="284"><tr><td width="128" align="right"><label for="fname">First Name: </label></td><td width="146"><input type="text" name="fname" id="fname" /></td></tr><tr><td align="right"><label for="lname">Last Name: </label></td><td><input type="text" name="lname" id="lname" /></td></tr><tr><td align="right"><label for="mobile">Mobile/Phone: </label></td><td><input type="text" name="mobile" id="mobile" /></td></tr><tr><td align="right"><label for="email">Email Address: </label></td><td><input type="email" name="email" id="email" /></td></tr><tr><td align="right"><label for="company">Company Name: </label></td><td><input type="text" name="company" id="company" /></td></tr><tr><td></td><td><input type="submit" name="submit" id="submit" value="Submit" /></table></form> besides me not adding the self server php into the [ action ]
  6. yea i do have skype, psssh prolly thats why the stupid thing wasnt working, thanks foxy
  7. ill try that because this one is just annoying me atm
  8. my platform is windows 7 64 bit and i keep having a problem starting apache for some reason, also when i click on the admin button it say i dont have premission to it, but i think i have a glitch where xampp is concern so imma reinstall it and see what happens
  9. ok thanks foxy, ill try that and see how if it works
  10. hello, i am trying to fine out, what is a good source to download onto my laptop i want to have php and a database on my desktop so when i do anything with php or a database i dont have to keep on waiting for it to display on my domain i tried xampp but yeah doesnt really work for me is there any other?
  11. its gonna be a small amount of data being stored into it, it should be around 2,000 to 20,000, depending on how many people fill the form, but ill check out the phpexcel because im gonna need to import that file into another programthanks thesci
  12. heeeeeeeeeeeeeeeey, im back with another question sorry if i been all over the place, i got many things to do that im not sure how to do it, so with that said you will see me pretty much in all the sectors. anyway, its possible to import the information in mysql database to a excel sheet correct? i know you have to call onto the whole database for this to work "i know how to get the info from a table or a column my problem is i still dont understand php since i havent get to finish my studies but i know a little, i know i need a form so the data can be imported into mysql, then i need to call onto that table with the SELECT function to get the information, but how do i get information from the mysql to excel?
  13. you can mark up the space where you want the banner to go but you need other languages like php, js, etc to get that done
  14. this is the code im using for scene one frame oneimport flash.events.MouseEvent;mymovie.addEventListener(MouseEvent.ROLL_OVER, moviespin);function moviespin(event:MouseEvent):void{mymovie.stop();}mymovie.addEventListener(MouseEvent.ROLL_OUT, moviestop);function moviestop(event:MouseEvent):void{mymovie.play();} and this is the code im using inside of "mymovie" import flash.events.MouseEvent;cable_mc.cable_btn.addEventListener(MouseEvent.CLICK, cable_btn);function cable_btn(event:MouseEvent){gotoAndStop("32")}access_mc.access_btn.addEventListener(MouseEvent.CLICK, access_btn);function access_btn(event:MouseEvent){gotoAndStop("26")}cctv_mc.cctv_btn.addEventListener(MouseEvent.CLICK, cctv_btn);function cctv_btn(event:MouseEvent){gotoAndStop("37")}snom_mc.snom_btn.addEventListener(MouseEvent.CLICK, snom_btn);function snom_btn(event:MouseEvent){gotoAndStop("42")}office_mc.office_btn.addEventListener(MouseEvent.CLICK, office_btn);function office_btn(event:MouseEvent){gotoAndStop("21")}door_mc.door_btn.addEventListener(MouseEvent.CLICK, door_btn);function door_btn(event:MouseEvent){gotoAndStop("47");} and at frame 19 inside of "mymovie" i use the code gotoAndPlay("1"); and for each pages i added a stop();
  15. yea i was looking them up, but sigh the stupid people blocked a few of the websites i normally read and watch tutorials on, so i have to look for some other good sites to read on the tutorials and ill present the code later on, im about to get some rest and yea i know about those glitch, i been trying to fix them the whole day no success, but i think imma try looking for a javascript tutorial on how to make this instead of flash
  16. Im having a little problem, with the page, its not stopping on the page it suppose to stop. the above link, shows you what im talking about if you click on one of the buttons, it would go to the page it suppose to go too but instead of stopping after the page is complete it goes onto the other page, even tho it have a stop function stopping it from going onto the next frame. can anyone advice me on how to fix this error?
  17. so i cant write up a script to decrease the speed? because i have it at 4 but its still seem to be rotating a little too fast this is the demo im working on www.divinedesigns1.com/flash/office2.html
  18. yea i change it to something else and it worked perfectly, thanks thesci
  19. html --> css ---> javascript ---> php ----> mysql ----> jquery ---> flash ---> ajax they all are on this website at www.w3schools.com well goodluck and enjoy
  20. i though i needed another extra language, thank a lot thesci ok ill try this one, then but i need to learn these languages first, im still on php since i end up with a lot of work thank a lot guys
  21. how can i define the speed of which its rotating? please give me a hint
  22. yea i know about the php needed to be excuted before any other thing, but what i was trying to fine out is that if i have a javascript doing a rotation of images in a gallery on a page, and i would like to add more images to that gallery. If i can use php to do and let the php display the images in the javascript variable as it in the javascript like the javascript variable for the images are items[0], etc and i make the php to upload the images in a variable which goes from item[0] to item[w.e] which allowing the javascript to rotate those images without doing it manually is that possible?
  23. hey sup, im trying to make an animation to keep on looping until a button is hit then it goes to another page but so far i got the animation working, the button working but it goes right to the other page page after the frames are finish, which i dont want, i would like it to keep looping until the i hit a button
×
×
  • Create New...