Skip to content

(쿠키자동저장)자바스크립트 관한 질문입니당. #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jovi23 opened this issue Jan 10, 2018 · 1 comment
Closed

(쿠키자동저장)자바스크립트 관한 질문입니당. #102

jovi23 opened this issue Jan 10, 2018 · 1 comment

Comments

@jovi23
Copy link

jovi23 commented Jan 10, 2018

<form action="C:\files\1.txt">
            <label for="username">Username:</label>
            <input type="text" name="username" /><br />
            <label for="password">Password:</label>
            <input type="password" name="password" />
            <input type="submit" value="Submit" />
  </form>

위에 있는 코드가 1.html 파일이고 files 라는 폴더에 있다고 가정하고
위의 폼을 작성해서 서브밋을 누르면 1.txt 파일에 작성한 정보가 자동으로 저장되는 방법이
php 이용하지 않고, 자바스크립트만으로 할 수 있는 방법이 있는지 질문 드립니당.

@jovi23 jovi23 closed this as completed Jan 10, 2018
@jovi23 jovi23 reopened this Jan 10, 2018
@blackdew
Copy link
Collaborator

자바 스크립트 쿠키에 저장하는 방법이 있습니다.
https://goo.gl/MNwKGw

정보를 서버로 받아오는 게 아니라 페이지를 연 브라우저의 "쿠키"라는 저장소에 저장하는 거에요.

@happydeveloper happydeveloper added this to the 코딩야학 3기 milestone Jan 23, 2018
@happydeveloper happydeveloper changed the title 자바스크립트 관한 질문입니당. (쿠키자동저장)자바스크립트 관한 질문입니당. Jan 23, 2018
@blackdew blackdew closed this as completed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants