양식과 같은 양식을 정의하는 phpBMS 시스템과 같은 CMS에서 작업하고 있으며 이러한 양식에 사용할 양식 요소를 정의합니다.양식 요소의 내용이 데이터베이스에 저장되지 않음
This은 양식 서식 파일의 예이고 these은 정의 된 필드입니다.
일반적으로 매우 간단합니다. say라는 ID가있는 inputField가 'name'인 경우 해당 필드의 내용은 양식이 할당 된 테이블의 이름 필드에 저장됩니다.
현재 다른 입력란 인 inputSmartSearch를 사용하고 있습니다. 입력 된대로 결과를 검색하고 자동으로 표시 할 수 있으므로 Google에서 제안하는 것처럼 작동합니다.
이 필드의 내용을 사용하여 '제품'테이블에 들어가고 싶지만이 설정 방법을 잘 모르겠습니다. 그래서 같은
내가 부르고 내 스마트 서치 : 나는 _POST에 의해 반환되는 것을 볼 때
$theinput = new inputSmartSearch($db, "chooseproducts", "Choose Product",$therecord["product"], "Choose Product", TRUE, NULL, NULL, TRUE, $required=true);
$theinput->setAttribute("class","important");
$theform->addField($theinput);
, 나는 참조 :
배열 ([chooseproducts] => 75c72a6a-83d9-11df-951a- fa9c1ec271f2 [DS-chooseproducts] => 코로나 [수량] => 2 형] => 현금)
I가 설정해야하므로
$theinput = new inputField("quantity",$therecord["quantity"],"Quantity",true, NULL, 1);
$theinput->setAttribute("class","important");
$theform->addField($theinput);
$theinput = new inputBasicList("type",$therecord["paymenttype"],array("Cash"=>"cash","Credit"=>"credit"), "Payment Type");
$theinput->setAttribute("class","important");
$theform->addField($theinput);
01,235 등 양과 종류 입력란
유형 및 수량 필드의 내용이 데이터베이스에 완벽하게 삽입되지만 smartsearch 필드에서 아무 것도 삽입되지 않습니다.
왜? 이 문제를 어떻게 해결할 수 있습니까?
그냥이 phpBMS를 버려라 :) 이것은 오늘 phpBMS 문제에 관한 3 번째 글입니다. 아니면 바이러스 성 광고입니까? ;) – fabrik
정말 별개의 질문이 아니라면 특정 질문에 대해 몇 가지 질문을드립니다. – Jacob
@fabric 당신은 당신이 잘 모르는 뭔가로 일하게 된 적 없습니다. – spinon