Man2001 Posted April 24, 2007 Share Posted April 24, 2007 I need a script which sends data of table or form into my website. Example, if user apply this form and this script sends it in another place in my website. It's like signin up some sort of competition. Sorry my bad english. Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/ Share on other sites More sharing options...
Mr. R Posted April 24, 2007 Share Posted April 24, 2007 page.php <?php echo "<form action='page2.php' method='post'>"; echo "<input type='text' name='age'>"; echo "<input type='submit' value='submit'>"; ?> page2.php <?php $age = $_POST['age']; echo $age; ?> Hope this helps! Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237116 Share on other sites More sharing options...
ball420 Posted April 24, 2007 Share Posted April 24, 2007 how indepth are you looking to get with it? Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237120 Share on other sites More sharing options...
Man2001 Posted April 24, 2007 Author Share Posted April 24, 2007 How do i paste that code into my web page? Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237136 Share on other sites More sharing options...
Mr. R Posted April 24, 2007 Share Posted April 24, 2007 lol, do you know anything about php? Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237141 Share on other sites More sharing options...
Man2001 Posted April 24, 2007 Author Share Posted April 24, 2007 Yes, but your code doesn't work. I tested this code and its doesn't work. That data on the form doesn't stay in page2. Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237145 Share on other sites More sharing options...
Mr. R Posted April 24, 2007 Share Posted April 24, 2007 Do you get a error? Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237149 Share on other sites More sharing options...
Man2001 Posted April 24, 2007 Author Share Posted April 24, 2007 Do you get a error? No. The text or numbers doesn't leave there when i close site2.php I want that text to appear there every time when someone opens that site2.php file on the internet. I hope you understand what i mean.. Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237186 Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 Code works fine. i suggect you paste the code in the "code" view not the design view Quote Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237192 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.