Jump to content

vanyok

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by vanyok

  1. No way to go without Java ? I'm not familiar with it
  2. Hey guys Sorta new to PHP here but getting better day after day. I have a question that I cant seem to figure out.Lets say I have a login form that asks user for the ID and Password.How do I pass the user name as $_GET so it displays in the address bar but pass the password as $_POST so no one can see what the password is ?Is there another way to go about it ? Possibly encrypt that password in the address bar? ( but I'd need to run SSL for that, right ? )Thank you
  3. vanyok

    Current Time

    justsomeguy, you're awsome, dude, as always
  4. vanyok

    Current Time

    $time() returned 1165945816From reading varios things it seems like I need to create some kind of a timestamp prior to using date()?
  5. vanyok

    Current Time

    This should be simple .. I hope :)Trying to get current system to store it in the DB ( MySQL format). I'm using$date=date("Y-m-d");For some reason $date returns me 0000-00-00 Whyyyyyyyyyy ? Thank you.
  6. vanyok

    Uploading file

    hey, good morning.I have a simple script that uploads the file but I cannot get it to work.. says that " No such file or directory" even though the folder is there and i have CHMOD set to full rights.This is the form:<form enctype="multipart/form-data" method="post" action="ProfileResults.php"><input type="hidden" name="MAX_FILE_SIZE" value="3000"><input type="file" name="picture" size="30"><input type="submit" name="imageSubmit" value="Upload"></form>and here is the upload php file: if ($picture != "") { $path="/pictures/$picture.jpg"; copy($picture, $path) or die("Couldn't Upload the file!"); } else die("Please go back and select a picture to upload");What's wrong ?
  7. vanyok

    hide my files?

    You can disable right click so no one will be able to righ click and save...But then again, some computer savy people will find a way to get to the link through the page source.
  8. Thanks MrAdam, I found what it was. Appearently I forgot to close the <title> tag on that included hdr.php so the browser was concidering the whole thing as one long title.
  9. I'd do what justsomeguy posted. I find it the best way. I usually assign it to the variable. Here:$num=mysql_num_rows($result);if ($num>0){echo "My query returned $num rows";}else{echo "Your query didnt return any results";}
  10. I can't remove session_start()... I mean my my Sessions wont work.
  11. Yup.. thats because I added error_reporting(E_ALL); just right now to see if that will help me figure out what's going on.That warrning means that I'm including another php file that has session_start() function as well but it shouldn't cause a problem, should it ?
  12. Hi guys I'm confused.. very confused and hope that someone will know what's going on. I have a very simple school homework project that's coming up as a blank page. I dont understand why. Here is the script of index.php:<?php session_start();if (!$_SESSION['userEmail'] && !$_SESSION['userPassword']){include 'hdr.php';include 'content/'.$page.'.php';}else{include 'ProfileResults.php';exit;}include 'ftr.php'; ?>it's located at:http://www.shopperstart.com/vanyok/phphomework/group/I tried on 4 different computer and the web site coming up as a blank page in Interenet Explorer but works fine in Firefox. The problem started after I added sessions so I assume that's the problem. Please help.Thank you in advance.
  13. Hey guys, I'm in the process of making my web site and wanted to know...Once I integrate some open source PhP Forum is it possible to make Forums Database a primary web site member Database ? So I could have users log into their accounts, track possible orders etc...Just trying to avoid extra work of creating registration pages, DBs...Also.. would you possiby recommend some good SQL/PHP open source recourses for this ? ( creating member login/pages )
  14. vanyok

    CSS Style sheets

    Anyone can suggest a good web site where I can download various free CSS style sheets templates ?Thank you.oops, sorry, just noticed there is a separeate Forum for CSS
  15. Thank you sir.. I'm a little too new to PhP so excuse my newbiness
  16. Here, this should help:http://ciswebs.smc.edu/cs85/geddes_james/l...uessingGame.phpThats what I'm trying to achieve... so when you guess the number you stay at the same page but text and submit for dissapear.Thank you
  17. Thats teh problem.. After clicking on "No, I dont want to play anymore" it displays " Thanks for playing" but all game fields are still present on the screen. I would like to make it that everything dissapears. Is it not possible ?
  18. Cool, that worked, thanks :)Now another quick question. How do I clear the page from everything so it says thanks for playing only ?is there a "Clear Screen" type command in PhP ?
  19. vanyok

    making Forum

    I would suggest you download one of the open source PHP forums:http://www.phpbb.com/ - one of the manyFrom there you can modify the existing script or build your own based on the example.Hope it helps.
  20. ahhh... let me try POST
  21. Yep, I'm aware of that Thats a school project and basically thats one of the things. We're learning how to use hidden forms to pass some values. Everything works great except that prompt at the end. nah, that didnt help.You can see I've used GET method so the address bar says ..php?no=No when pressed but it isn't displaying "THanks for playing"Would you want me to post full program code ?
  22. Hey guys I'm learning PhP and kind stuck with this simple thing ( think it's simple.)Doing a school project. Just a simple "Guessing number" game. Take a look:http://www.shopperstart.com/vanyok/phphome...umber/guess.phpI cannot get "No" button to work at the end of the game prompt "Would you like to play again?"echo "\nWould you like to play again?";echo<<<HERE<form name="playagain" method="get" action="guess.php"><input type="submit" name="yes" value="Yes"><input type="submit" name="no" value="No"></form>HERE;if ($no=="No"){echo "<h3><center>Thanks for playing</center></h3>";}else{}Thats the code behind the button. Seems simply but it's not working, just takes me back to the beginning of the project...
  23. vanyok

    N00b Stuck

    Hmmmm.. I could've sworn that I had table name assigned to $teacherOnce again, thank you. I'll try it when get back home.. I bet that was it.
  24. Sorry dude, I dont really understand what you're trying to ask for but here is the link to download PhP:http://us3.php.net/get/php-5.1.6-Win32.zip/from/a/mirror
×
×
  • Create New...