Click here to Skip to main content
15,909,445 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hey,

i am trying to display some text on click of button in php. i am using dreamweaver and xamp for windows 8. i have tried so many solution but unfortunately none helped me out. Please provide me an appropriate solution for that.
waiting for replies.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Dec-13 12:48pm    
It means "forbidden". Can be anything. Not enough information. You need to debug the server-side code.
—SA
ritika luthra 25-Dec-13 5:33am    
yes, its the forbidden error.i have done everything; evn i have updated my config files but no solution.
CHill60 25-Dec-13 10:15am    
Unfortunately we cannot see your code so we cannot help
Er. Tushar Srivastava 27-Dec-13 16:28pm    
You need to at least provide with a small config data of your server. Is the folder in which your script is residing is accessible? Please consider revising the question. :)

1 solution

Just use jquery

First include jquesy js file in your page they try this code

HTML
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function show_data()
{
  $.post("another.php",function(data){
    $("#data_div").html(data);
  });
}
</script>
<input type="button" values="Click" onclick="show_data()">
<div id="data_div">
</div>
</input>



The contents that are executed in another.php will be seen in the division having id data_div
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900