I did try the code without the reference, but after I commented out that bit, the code stopped working properly. Removed it altogether and same issue occured.
Have no idea why, but had to keep that top bit in there for it to function properly.
Search found 9 matches
- Fri Apr 29, 2011 11:33 am
- Forum: PHP - Code
- Topic: Keeping dropdown selections after submission
- Replies: 6
- Views: 519
- Thu Apr 28, 2011 12:22 pm
- Forum: PHP - Code
- Topic: Keeping dropdown selections after submission
- Replies: 6
- Views: 519
Re: Keeping dropdown selections after submission
You, sir, are awesome. :D Final code, for posterity: <form action="build22.php" method="post"> <input type="hidden" name="data" value="1" /> <?php // GRAB DATA $result = mysql_query("SELECT * FROM special2 WHERE cat = 'color' ORDER BY cat")...
- Thu Apr 28, 2011 11:19 am
- Forum: PHP - Code
- Topic: Keeping dropdown selections after submission
- Replies: 6
- Views: 519
Re: Keeping dropdown selections after submission
That's awesome! Thanks! :D Code works well in keeping the selection the same after submssion. Only problem is now it's not printing the prices associated with the options. This bit of code doesn't seem to function right, but I can't see the problem?? echo ">{$name} ({$$price})</option>"; W...
- Wed Apr 27, 2011 8:12 pm
- Forum: PHP - Code
- Topic: Keeping dropdown selections after submission
- Replies: 6
- Views: 519
Keeping dropdown selections after submission
Hello all, I currently have a php from which populates the selections based on information found in a SQL database. As it stands, the user selects the various options in the drop down lists and then submits these selctions. Using $_POST commands, I then populate a list of the current configurations ...
- Sun Jul 11, 2010 1:24 pm
- Forum: Javascript
- Topic: Floating div with boundaries
- Replies: 1
- Views: 526
Floating div with boundaries
Hello all, I'm still fairly new to the whole world of programming, but I'm getting there slowly! Reading these boards is incredibly helpful. Anyway, here is a simple query, or at least it looks simple on the surface... I would like to have a floating div follow the user as they scroll the page. I ha...
- Mon Jul 05, 2010 6:01 pm
- Forum: PHP - Code
- Topic: PHP in HTML - RSS feeds.
- Replies: 6
- Views: 208
Re: PHP in HTML - RSS feeds.
Hey guys, Quick update! Turns out the php script is actually just printing the output from the RSS feed's <pubdate>, which is in the unwanted format. So I guess I'll have to alter how the xml ouputs the <pubdate> instead of altering the PHP to re-interpret the <pubdate>. Hope it's worth it.... :crazy:
- Mon Jul 05, 2010 10:44 am
- Forum: PHP - Code
- Topic: PHP in HTML - RSS feeds.
- Replies: 6
- Views: 208
Re: PHP in HTML - RSS feeds.
Thanks for the clarification, Christopher! :D So taking your guys' advice, I've gone ahead and just made my index.php with all the appropriate html and css stylings. As stated in this post, everything works perfectly fine! :D I have my site styled exactly as I want and now I have an automatically up...
- Sun Jul 04, 2010 7:51 pm
- Forum: PHP - Code
- Topic: PHP in HTML - RSS feeds.
- Replies: 6
- Views: 208
Re: PHP in HTML - RSS feeds.
Thanks for the quick replies, jraede and christopher! So essentially the suggestion here is to make the homepage go to 'index.php' and just have my HTML run normally within it, styles and all? Meaning I'd have my main content div with all my HTML and then have my sidebar div with the PHP running the...
- Sun Jul 04, 2010 6:35 pm
- Forum: PHP - Code
- Topic: PHP in HTML - RSS feeds.
- Replies: 6
- Views: 208
PHP in HTML - RSS feeds.
Hello all, I have just a real simple query for those seasoned PHP devs out there. I'm new to PHP and coding in general, so don't take my naievte the wrong way! Anyway, I am currently putting together a homepage for a website and I simply want to include 2 divs on the sidebar, one that updates itself...