Jump to content

ceycey

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ceycey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. You must use cookies or sessions in such a situation, your method is wrong.. The membership systems are created using session or cookie method: when the user submits the login form, a cookie is sent to user's computer and when the user browses the web page later, the cookie is detected. But still you can use javascript onclose event that is thrown when the user attempts to close web page but it is not a solution.
  2. sending values inside an array is possible... <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="carname[]" value="car name1" /><br /> <input type="text" name="carname[]" value="car name2" /><br /> <input type="submit" name="cars" value="send" /> </form> <?php if(isset($_POST['cars'])) { foreach($_POST['carname'] as $item) echo "$item <br />"; } ?> You can write a javascript function which appends a new input control to the document, like "<input type="text" name="carname[] />" />" when "add buton" is clicked...
  3. please some google.. var txtFile = new XMLHttpRequest(); txtFile.open("GET", "http://my.remote.url/myremotefile.txt", true); txtFile.onreadystatechange = function() { if (txtFile.readyState === 4) { // Makes sure the document is ready to parse. if (txtFile.status === 200) { // Makes sure it's found the file. allText = txtFile.responseText; lines = txtFile.responseText.split("\n"); // Will separate each line into an array } } } txtFile.send(null); http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/thread/64ea2d16-7594-400b-8b25-8b3b9a078eab
×
×
  • 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.