david212 Posted January 6, 2010 Share Posted January 6, 2010 Hello! I have this code on my site.php <td><input type="text" name="link" size="18" border-width: 1px" value=''/></td> </tr> <td><input type="submit" name="abc" value="send"></td> When i click my submit button i want to put the "link"'s (textfield) value on my other site's text field's area. For example on my text field "link" i put "hello" i need it to be shown on my other web's textfield area by clicking my submit button: http://othersite.com/index.php?result=hello Im pretty new in php. I tried : <?php $link=$_POST['link']; ?> <form method="POST" action="http://othersite.com/index.php?result=<?php echo $link; ?>" > Could anybody help me? Sorry for my bad english Link to comment https://forums.phpfreaks.com/topic/187410-please-help/ Share on other sites More sharing options...
teamatomic Posted January 6, 2010 Share Posted January 6, 2010 Process the form locally then use a header(location) to redirect if (isset($_POST['link'])) { $link=$_POST['link']; header("Location: http://www.somewhere.com/index.php?link=$link"); } Link to comment https://forums.phpfreaks.com/topic/187410-please-help/#findComment-989667 Share on other sites More sharing options...
david212 Posted January 6, 2010 Author Share Posted January 6, 2010 Thank you it works fine! Link to comment https://forums.phpfreaks.com/topic/187410-please-help/#findComment-989671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.