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. 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! 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? 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? 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? 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. 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? 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.. 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 Link to comment https://forums.phpfreaks.com/topic/48490-i-need-some-help/#findComment-237192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.