나는 다음과 같은 테이블이있는 HTML 파일이 아닌 객체() 멤버 함수 형식으로 전화 :치명적인 오류 :
<form action="wedding-ajax-support.php" method="get" id="wedding-table">
<table border="0"; align="center">
<tr>
<th scope="col">Key</th>
<th scope="col">Value</th>
</tr>
<tr>
<td><label for="date">Select the date on which your party will take place (mm/dd/yyyy): </label></td>
<td>
<input name="date" type="text" class="larger" id="date" size="12" />
</td>
</tr>
<tr>
<td><label for="catering">Type the catering grade you would like (from 1 to 5) : </label></td>
<td><input name="catering" type="text" class="larger" id="catering" size="5" /></td>
</tr>
<tr>
<td><label for="size">Type the number of people you are expecting to attend: </label></td>
<td><input name="size" type="text" class="larger" id="size" size="5" /></td>
</tr>
<tr>
<td>Find me available venues, based on my preferences: </td>
<td><input type="submit" name="submit" id="submit" value="GO!" class="larger" /></td>
</tr>
</table>
One of those inputs is the date. That's the only thing I'm concerned about for now, to keep things simple.
On another file, wedding-ajax-support.php (on which I organize all of my php code) I have this amongst other code:
$date = DateTime::createFromFormat('m/d/Y', $_GET['date']);
$ 날짜 = $ date-> format ('Ym-d'); // 사용자가 입력 한 날짜와 데이터베이스의 날짜가 다른 형식의 날짜 형식을 변경합니다.
And then a simple echo $date; just to test it.
그런 다음, 다시 내 주요 파일에서, 내가 넣어
<script type="text/javascript">
$ ("# 결혼식 테이블") 부하 ("결혼식 아약스 - support.php.");
JQuery와 AJAX를 통해 사용 변경된 형식 날짜 테이블을 대체한다.표가 있어야하는 웹 페이지를로드 할 때 메시지가 표시됩니다. "치명적인 오류 :/disk/diskh/zco/cotm2의 비 오브젝트에서 구성원 함수 형식()을 호출하십시오. /public_html/wedding/wedding-ajax-support.php on line 23 전화 스택 : 0.0002 333936 1. {main}() /disks/diskh/zco/cotm2/public_html/wedding/wedding-ajax-support.php:0 " .
Any ideas/suggestions would be appreciated, thanks in advance!
문제를 묻는 날짜의 텍스트 필드를 사용하지 마십시오. 캘린더 (스크립트)를 사용하면 형식을 더 잘 표현할 수 있습니다. –