http://oxidepkz.net63.net/vote.php 전체 php 파일의 모습입니다. 그래서 mysql 데이터베이스에 들어가기로 한 사용자 이름이 있습니다. 사용자 이름은 텍스트 상자입니다, 내가 필요한 모든 URL을 사용자가 실제 PHP 페이지가 아니라 버튼 클릭에서 생각합니다. 코드가 changeAction 기능을 수행 할 때URL에 사용자 이름을 넣지 않는 JavaScript
내가 보는 것과<script>
function next() {
if(document.vote.username.value.length == 0) {
alert("The username field cannot be left empty.");
} else if(document.vote.username.value.length > 30) {
alert("You've reached the maximum amount of characters.");
} else {
document.vote.username.disabled = true;
document.getElementById('button').style.display = "block";
document.getElementById('nextbutton').style.display = "none";
}
}
function changeAction(url) {
if(url.indexOf("rspscoding.org") != -1) {
var username = document.vote.username.value;
document.vote.action = ""+url+"&username="+username+"";
} else {
document.vote.action = url;
}
}
</script>
<title>Vote</title>
</head>
<body>
<center><br>
<br><br>
<div class="vote"><br><br>
<form name="vote" class="short style" method="post" target="_blank">
<input name="username" type="text" size="30" maxlength="30" placeholder="Username"><button id="nextbutton" type="button" onClick="next();">Next</button>
<div style="display: none;" id="button" class="button"><button type="submit" onClick="changeAction('http://www.rune-server.org/toplist.php?do=vote&sid=8289&name=');")>Rune-Server</button><button type="submit" onClick="changeAction('http://www.runelocus.com/toplist/index.php?action=vote&id=30838&id2=');")>RuneLocus</button></div>
</form><br>
"http://oxidepkz.net63.net/vote.php"로 이동하십시오. –
도움이되지 않는 내용에 대해서는 의견을 말하지 마십시오. 전체 투표 페이지를 보려면 해당 링크를 클릭하고 "아니오"를 클릭하십시오. . " – Oxide
귀하의 문제에 대한 코드에 액세스하려면 임의의/스케치 사이트를 방문하는 사람들에게 알리지 마십시오. 관련성이있는 경우 여기에 게시하십시오. –