if문 변수만 가능
함수는 불가능
'progarm_old > [PHP]' 카테고리의 다른 글
| [php] str_replace 치환 (0) | 2013.02.25 |
|---|---|
| [php] hanCut 글자자르기 (0) | 2013.02.15 |
| [php] class 사용 (0) | 2012.11.15 |
| mysql_insert_id()란? (0) | 2012.08.28 |
| [php] 대문자,소문자변환 strtolower, strtoupper (0) | 2012.08.22 |
if문 변수만 가능
함수는 불가능
| [php] str_replace 치환 (0) | 2013.02.25 |
|---|---|
| [php] hanCut 글자자르기 (0) | 2013.02.15 |
| [php] class 사용 (0) | 2012.11.15 |
| mysql_insert_id()란? (0) | 2012.08.28 |
| [php] 대문자,소문자변환 strtolower, strtoupper (0) | 2012.08.22 |
| 트위터 위젯 설정하기 (0) | 2013.06.14 |
|---|---|
| aptana studio3 (0) | 2013.02.14 |
| []The specified external location already exists. If a project is created in this location, the wizard will automatically try to detect existing sources and configure the build path appropriately (0) | 2012.09.14 |
| jQuery 프로그래밍 소스 다운로드 (0) | 2012.06.21 |
| *카티아* 시작 (0) | 2011.09.30 |
이건 매우 간단한것입니다.
<a href="#id값">id값으로 이동 </a>
<div id="#id값"> 여기로 오세요 </div>
| 태그속 높이 구하기 (0) | 2013.06.11 |
|---|---|
| [html] window.print(); (0) | 2013.03.12 |
| [script] id 값넣기 (0) | 2012.12.12 |
| 클릭시 value값 받기 (0) | 2012.11.14 |
| window. 메소드들 (0) | 2012.10.11 |
<div id="admin_Navi"></div>
<h2 id="admin_menu_name"></h2>
이스크립트는 id값이 있는 태그안에 글이 들어간다.
<script type="text/javascript">
document.getElementById("admin_Navi").innerHTML = "<?=$admin_Navi?><strong><?=$mod_Name?></strong>";
document.getElementById("admin_menu_name").innerHTML = "<?=$mod_Name?>";
</script>
이것은 class의 이름을 바꾸라는 것이다.
document.getElementById("admin_Navi_"+i).className = "off";
| [html] window.print(); (0) | 2013.03.12 |
|---|---|
| [html]현재페이지에서 클릭시 위치로 이동하기 (0) | 2013.01.09 |
| 클릭시 value값 받기 (0) | 2012.11.14 |
| window. 메소드들 (0) | 2012.10.11 |
| input name값 받기 (0) | 2012.10.02 |
class testclass{
function testinput(post){
alert(post);
}
}
class를 생성을 하여 그안에 여러가지 함수를 정의 해준다.
$testfunc= new testclass();
위내용을 사용할 페이지에 지정을 해준다.
$testcode = $testfunc->testinput(poste);
그리고 변수를 정해주고 class를 호출하고 class안에 해당하는
함수를 지정해주면 내용값을
변수에 저장해준다.
틀릴수도 있으므로 ... 다른곳을 참고하시길 바랍니다.
| [php] hanCut 글자자르기 (0) | 2013.02.15 |
|---|---|
| [php]Can't use function return value in write context in (0) | 2013.01.24 |
| mysql_insert_id()란? (0) | 2012.08.28 |
| [php] 대문자,소문자변환 strtolower, strtoupper (0) | 2012.08.22 |
| [php] 역슬러쉬제거,생성,stripslashes,addslashes (0) | 2012.07.12 |