austine_power007 Posted December 13, 2006 Share Posted December 13, 2006 [b]i query and show data in text field [/b]<input name='job_ttl' type='text' id='job_ttl'value=\"{$titl}\" size='50' DISABLED>[b]Now i want this data to pass it to another page i used [/b]if (isset($_POST['Submit'])) // name of submit button{$title=$_GET['job_ttl'];} Link to comment https://forums.phpfreaks.com/topic/30462-passing-value-to-another-page/ Share on other sites More sharing options...
austine_power007 Posted December 13, 2006 Author Share Posted December 13, 2006 [b]But why i am getting error?? its saying [/b]Notice: Undefined index: titl in ....\flash\update_success.php on line Link to comment https://forums.phpfreaks.com/topic/30462-passing-value-to-another-page/#findComment-140275 Share on other sites More sharing options...
OOP Posted December 13, 2006 Share Posted December 13, 2006 I don't know if there is a typo mistake here or not but in the form, your name field is:job_ttlAnd in your php file, you are trying to get the value from the global array using the key:job_titlas you can see there is a missing i in the first one Link to comment https://forums.phpfreaks.com/topic/30462-passing-value-to-another-page/#findComment-140279 Share on other sites More sharing options...
austine_power007 Posted December 13, 2006 Author Share Posted December 13, 2006 thats a mistake Link to comment https://forums.phpfreaks.com/topic/30462-passing-value-to-another-page/#findComment-140281 Share on other sites More sharing options...
OOP Posted December 13, 2006 Share Posted December 13, 2006 O.K what method are you using in the form...is it get or postif it is post, then you have to change you code to be something like below: if (isset($_POST['Submit'])) // name of submit button{$title=$_POST['job_ttl'];} Link to comment https://forums.phpfreaks.com/topic/30462-passing-value-to-another-page/#findComment-140573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.