Jump to content

nikhilthecool

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nikhilthecool's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. somebody please... atleast give me some alternate solution...plsss...
  2. Hi I have a login form in which i submit the username and password this way... <form action="index.php" method="post"> <input type="text" name="username"> <input type="text" name="password"> <input type="hidden" name="option" value="login"> <input type="submit" name="Submit" class="button" value="Login" > </form> Now, i after i submit the login form i need to submit the login information. So i use the hidden field option so that it goes to index.php?option=login ...(Is it so? I'm not sure) Also I need to submit the same information to another page where i need to use option=forum Now how do i do this? Basically, i'm trying to modify my application so that user need not login two times(in the website and forum differently) Please Help..!!
  3. purpose-want to make a duplicate of a record in the same table with few of the column values changed PS-there are more than 100 columns so treating them individually would be quite cumbersome qry-> insert into table1 select * from table1 where xyz='abc' when i execute this qry i get a copy of the record whose xyz='abc' but there are certain columns which i need to change then itself and what if there are certain unique fields?? what do i do then?
  4. Well. Here i have a piece of php code where there is an "if" clause. if($x > $y) { // open a new window } Now all i want is, if x > y, then a new window should open. Obviously for that i need to use javascript function window.open() Fine. But how do i do that? I've tried doing it the following way if($x > $y) { <script type="text/javascript"> window.open('newwindow.php'); </script> } But the thing is i also need to pass on a few parameters further like window.open('newwindow.php?var=something&var1=somethingelse'); Now how do i do that?? using <script> is a failure in that case. Please help me out if you really know the technique to do this.. Thanks.
  5. No. I want to open second.php only on click. Also i want to access the variable in second1.php Its like, on first.php i click on the link "Click Here" After clicking, i need to open second.php and pass variable "name" to both second1.php and second2.php so that i can be able to use them there. Please help...
  6. Hi, I pass a variable "name" from first.php as follows: <a href="second.php?name=<?=$row["username"]?>"Click Here</a> Now i get the value using $_REQUEST["name"] However, i need the value in second1.php which is a frame in second.php second.php (frameset) __|__ | | second1.php second2.php As a result, i cant get the value using $_REQUEST. What do i need to do to access the variable $_REQUEST['name'] in second1.php?????? Please help. Thanks.
  7. Everyone has seen the yahoo messenger, where when we receive a new message, the minimised window starts blinking with a sound. I want to implement something similar here. I retrive rows from a mysql database in a window which is being refreshed every 5 secs. So all i want is whenever there is a new row added in the database and it is retrieved on refresh, i want the window to blink, in case it is minimised. Is this possible in php? Or in javascript or anyother scripting language?? Please share something if u know. Thanks.
  8. Hi I want to know how to implement the "new message alert" such as in yahoo messenger, where when a message is received, u get to see an alert with the minimized window blinking. I want to know is the blinking window feature possible with javascript ( or php ). If so, how and if not, is there any other technology with which i can implement it. Or any other solution to the prob??
  9. even i need to modify my application. instead of using auto-refresh i was thinking of triggering an event which calls the refresh function. the auto-refresh looks very irritating to the user's eye, especially with high refresh rates. if any1 has a better solution, do let me know too. thanks.
  10. I used the meta tag to auto refresh my frame. <meta http-equiv="refresh" content="30"> which refreshes my page every 30 seconds
  11. get the date in a variable using the date('Y','M','d') or something like that. pass the variable and also the current date variable to the function . Inside the function, jus subtract both variables. If result>0, the date is greater and otherwise. This is jus my way of implementing it. you can have a lot other ways.
  12. i already tried onUnload() But the prob here is that, after i close the window, i.e., when onUnload is called, i have to run a script for LOGOUT which works fine on closing the window. But, this also works when i REFRESH the page. So whenever the user refreshes the page, he gets logged out and relogged in automatically. lol. i guess onUnload isnt appropriate. But is there any logic wherein in can prevent the user from refreshing a page??
  13. ok. thanks guys. i'll try to implement shocker's datetime logic probably. Thanks again.
  14. hi i want to run a php script after the window is closed. how do i do that? basically, i need to call the script for logout when the user clicks the window close (X) button. pls help thanks
  15. as far as i know, u cannot echo or print anything before the header.. jus confirm it. thanks.
×
×
  • 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.