Jump to content

href link


jaykappy

Recommended Posts

I am very confused.... as you can see...I am aware the statement above has php and JS in it....

 

I Have an input box and a link/button

I want to click the button, grab the value in an input box, pass it to the php page, do a php query and populate a table in the page

 

Like a search....looking on where to start...examples etc...

Link to comment
https://forums.phpfreaks.com/topic/275874-href-link/#findComment-1419623
Share on other sites

assuming you are trying to use jquery and you have the libraries included already....

 

 

$(.linkclick).click(function(){
  window.location.href = "/MainPage.php?value=" + $("#searchvalue").val();
});

 

<input type="text" id="searchvalue" />
<a href="javascript:;" Class="linkclick">click</a>
Link to comment
https://forums.phpfreaks.com/topic/275874-href-link/#findComment-1419625
Share on other sites

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.