Jump to content

how to pass text contents without using a form?


damerit

Recommended Posts

How do I pass the text contents of page1.html to page2.php with out using a form. I tried the onclick event with no luck...

 

page1.html

<input type="text" name="search" onclick="window.open('page2.php')"  />

 

page2.php

<?php

$search = $_GET['search'];

echo $search;

?>

 

 

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.