답변 3개
채택된 답변
+20 포인트
3년 전
echo "<input class='button2' type='button' value='확인' onclick=\"document.location.href='./p.php' \" />";
이렇게 해보세요
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
타버린나무
3년 전
답변 감사합니다.
댓글을 작성하려면 로그인이 필요합니다.
3년 전
+ echo
- https://www.php.net/manual/en/function.echo
- https://www.php.net/manual/en/language.types.string.php
- https://www.php.net/manual/en/language.types.array.php
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"로 감싼 안쪽에 " 표시는 \" ... echo "this is \"test\" string - 'ok'";
'로 감싼 안쪽에 ' 표시는 \' ... echo 'this is \'test\' string - "ok"';
</p>
<p>echo "<input class=\"button2\" type=\"button\" value=\"확인\" onclick=\"document.location.href='./p.php'\" />";
echo '<input class="button2" type="button" value="확인" onclick="document.location.href=\'./p.php\'" />';</p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
B
BiHon
3년 전
생략 가능하지만 비추천입니다.
- https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics
- https://developer.mozilla.org/ko/docs/Learn/Getting_started_with_the_web/HTML_basics
3. The attribute value wrapped by opening and closing quotation marks.
3. 속성 값의 앞 뒤에 열고 닫는 인용부호(" 또는 ')가 있어야 합니다. [그냥 한글 페이지 그대로 복사]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
참고로 남긴 댓글인데 그렇게 느꼈다면 죄송합니다.
가급적 규칙 지켰으면 하는 바람으로 Reference Manual의 링크 남기곤 하는데
이젠 그만두도록 해야겠네요.
- https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/HTML_basics
- https://developer.mozilla.org/ko/docs/Learn/Getting_started_with_the_web/HTML_basics
3. The attribute value wrapped by opening and closing quotation marks.
3. 속성 값의 앞 뒤에 열고 닫는 인용부호(" 또는 ')가 있어야 합니다. [그냥 한글 페이지 그대로 복사]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
참고로 남긴 댓글인데 그렇게 느꼈다면 죄송합니다.
가급적 규칙 지켰으면 하는 바람으로 Reference Manual의 링크 남기곤 하는데
이젠 그만두도록 해야겠네요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인