2009-07-01 10 views
2

내 코드는 다음과 같습니다전달 형식 매개 변수

//cron.html  
<head> 
<meta http-equiv=Content-Type content="text/html; charset=windows-1252"> 
<meta name=ProgId content=Word.Document> 
<meta name=Generator content="Microsoft Word 11"> 
<meta name=Originator content="Microsoft Word 11"> 
< 
</head> 

<body> 
<form method="post" action="CETrafficGenerator.php?step=2"> 
<input type="text" name="url"/> 




</body> 

</html> 

URL 대신 내가이 형식에 cron.html URL = 통과 할 수를 입력하는?

도움말

+0

내가 여기에 볼 수있는 가장 큰 문제 : 발전기 = Microsoft Word를! –

+0

그것은 단지 메타 태그입니다 ... 임의의 태그! –

답변

2

예, 가능하지만 자바 스크립트를 사용하여 양식 입력란에 입력해야합니다. 이 작업을 더 쉽게하기 위해 jQuery를 사용할 수 있습니다 - 자세한 정보는 http://projects.allmarkedup.com/jquery_url_parser/을 참조하십시오. 예 :

$('url).value = jQuery.url.param('url'); 

그리고는 다음과 같이 양식 필드를합니다

<input type="text" name="url" id="url" value="" /> 
+0

+1 잘 알고 있습니다. – zinovii

0

아니 당신은 할 수 없습니다 제발 필요하지 않습니다. 당신이 양식 자동 완성하려면이이 CETrafficGenerator.php를 호출 할 수 있습니까? 단계 = 2 & URL = http://google.com는하지만 당신은

<form method="get" action="CETrafficGenerator.php?step=2"> 
<input type="text" name="url"/> 
</form> 
1

짧은 대답을 "얻을"에서 "포스트"==에서 "방법"을 변경해야 No

쿼리 문자열의 값을 가져 와서 텍스트 상자에 삽입하려면 프로그래밍 (php, asp, javascript)이 필요합니다.