nblackwood Posted February 15, 2010 Share Posted February 15, 2010 I am building an insurance quoting script, and am wondering if it is possible to do something like name1 - vehicle1, name2 - vehicle1, name2 - vehicle2, etc. I am trying to do it without using MySQL as I don't have a long enough deadline to properly design the database structure for this sort of thing. I can do it with MySQL, but would prefer to not use it if it is possible without getting confused data. I am not a noob, and technicality is preferred. Any help is appreciated. Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted February 15, 2010 Share Posted February 15, 2010 Alright so you want to do it without MySQL, that's fair enough. So where do you want this data to be coming from that you're matching up? Text file? External web-page? Embedded in the code? Quote Link to comment Share on other sites More sharing options...
nblackwood Posted February 15, 2010 Author Share Posted February 15, 2010 My apologies, for got to mention that. The data is going to be sent via an earlier page in the process. I've tried using $_POST, but it seems to only know what was on the page directly preceding it, or any other page that has the result page as the "action=" function. Quote Link to comment Share on other sites More sharing options...
beansandsausages Posted February 15, 2010 Share Posted February 15, 2010 Could use a hidden form? I.E page 1 <input type="text" name="name" id="name" size="20" /> page 2 $name = $_POST['name']; <input type="hidden" name="name" id="name" value="{$name}" /> <input type="text" name="add" id="add" size="20"/> Then on page three call the name $name .... Maybe long and boring but only way to do it with out Mysql i know of. Quote Link to comment Share on other sites More sharing options...
nblackwood Posted February 15, 2010 Author Share Posted February 15, 2010 I was afraid of that. I figured I would have to use them darn hidden fields, but I thought I'd ask around. Thanks for the response. Quote Link to comment Share on other sites More sharing options...
PHP Monkeh Posted February 15, 2010 Share Posted February 15, 2010 Though you marked the topic as solved, you could always look at using sessions. Quote Link to comment 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.