Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.