|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I am trying to make a drop down menu that is populated by the contents of a table. I know it's possible, I've seen hundreds of examples. But for some reason, as soon as i put the php code after the echo '<select name="name">'; php quits. I tested it and tested it, and it just quits. I typed: echo 'name'; after the command above, and name didn't show up on the page. When I typed: echo 'name'; before the command, name showed up. Any ideas? Edit: Basically what I've found out is that no PHP gets parsed if it is between <select></select> tags. Does anyone know why? Edit: I figured it out. Post here if you want to know how(and what I was doing wrong). Last edited 07-11-2006 at 09:46 AM. |
| |
|
| |||||||
| | #2 |
| Member Join Date: Jan 2006 Location: Massachusetts
Posts: 136
![]() | Were you having an issue with quotation marks, or was it deeper than that? That would have been my first guess.
__________________ Visit my new and improved humor site: It's Just Humor Or check out the newest source for HQ celebrity images: It's Just Babes |
| |
| | #3 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | no, the quotation was fine, I was issueing commands within a <select></select> tag, and the only thing that shows up in a select block is <option/> tags. So once I figured out that when I echoed within that it wouldn't show up anyway, then I moved past this problem, I'm getting ready to get started again, so I'll be here posting within the hour with another problem, I'm sure. |
| |
| | #4 |
| Member Join Date: Dec 2005
Posts: 132
![]() | i know it sounds silly, but did you put the <? ... ?> marks??
__________________ Eat healthy, Stay Fit, Die Anyway. --==-- If there is a man who knows everything about women, there is a Windows distribution without bugs. |
| |
| | #5 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | No, it doesn't sound silly, I just was trying to test the code using echo, but within the <select></select> tags, anything other than <option> tags is ignored, that is where my problem was at. |
| |
| | #6 |
| Member Join Date: Jan 2006 Location: Massachusetts
Posts: 136
![]() | So the issue was HTML and not PHP related. No worries.
__________________ Visit my new and improved humor site: It's Just Humor Or check out the newest source for HQ celebrity images: It's Just Babes |
| |
| | #7 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Yeah, I thought originally it was PHP related, that's why I put it here. |
| |
| | #8 |
| Junior Member Join Date: Aug 2006
Posts: 18
![]() | To better separate code from design, i strongly recommend using smarty templates, first you will find it lose of time, but when you will build great websites this will be a big advantage. |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| huge google searchrank drop | laag | 5 | 12-20-2006 03:20 AM | |
| Sub Menu Link Trouble | okinawa | Programming | 0 | 11-21-2006 01:02 PM |
| Most Expensive Menu Items in the World | proudcollector | General Talk | 7 | 11-15-2006 07:44 PM |
| listing on link market wont "drop" | midlandi | Help and Support | 3 | 11-08-2006 08:00 PM |
| Drop off in Google listing - reason unknown | Chart Music | 0 | 10-14-2006 04:51 PM | |