RE xrez
Posted: Wed Jun 20, 2007 10:23 am
why not just make your input text so its in regular HTML
give it a name like: name= "my_input_textbox_blahblahblah "
Then up in header put php
to say somethin like
That would convert whatever they put into the text box..into a variable of $name
you should use sessions as they're telling you though so that you can make it sorta 'sticky'
meaning you can use it on other pages. Otherwise, when you go to new page, it'll disappear.
if you ever try to use the $name variable , make sure you also use something like if(isset)
to make sure its even set first ..otherwise you get an error because page loads tries to read something that hasnt even been put in yet.
give it a name like: name= "my_input_textbox_blahblahblah "
Then up in header put php
to say somethin like
Code: Select all
<?php
//set variable
$name = $_POST['my_input_textbox_blahblahblah '];
?>That would convert whatever they put into the text box..into a variable of $name
you should use sessions as they're telling you though so that you can make it sorta 'sticky'
meaning you can use it on other pages. Otherwise, when you go to new page, it'll disappear.
if you ever try to use the $name variable , make sure you also use something like if(isset)
to make sure its even set first ..otherwise you get an error because page loads tries to read something that hasnt even been put in yet.