Jump to content

parse javascript to php


teo6389

Recommended Posts

Hello to you all!!!!!

This is my first post and every opinion/help will be much appreciated by me.

I am new to php and javascript.

So lets start...

What i want to do is parse a variable to an external php form every time a person clicks on text.

For example lets assume that i have the following string echoed $test = "what a beautiful day";

i want when a person clicks on "what" the "phpquery?test=what" to be triggered.

From what i have read javascript can help with that because of the client side scripting logic

Thank you all in advance!

Link to comment
https://forums.phpfreaks.com/topic/237815-parse-javascript-to-php/
Share on other sites

if you are not familiar with AJAX you can use this resource here

 

i did something like that instead <?php $row = mysql_fetch_array($result); $pieces = explode(" ", $row['perigrafi']); $count=sizeof($pieces); for($counter=0;$counter<$count;$counter++){ echo "<dd class=\"greek\"><dfn id=\"1\"></dfn>$pieces[$counter]</dd><a href=\"test.php?url=$url\" class=\"x87\">"; } echo "<br />"; mysql_data_seek($result,0); ?> but the first result doesnt return as hyperlink

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.