Dynamic Lists And Producing Rows On The Preceding Form Page
I have created the following dynamic drop down: Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Dynamic Dropdown Lists
I am recoding a greeting card website. I am using dropdowns as filters for items in a DB, so when the user picks "animals" from the "theme" dropdown, the returned cards all feature animals, and when the user picks "birthday" from the "message" option, the returned cards all feature birthday cards. However, there are some combinations that don't return any results, for example "get well" "floral" cards. Code:
View Replies !
Dynamic Unordered Lists
I have searched about for this one but havent quite found the low down i'm looking for but here goes. I'm trying to dynamically populate an unordered list from an SQL database which will have upto 5 or 6 sub-selections per top level list item so.. it would do something like this: Code:
View Replies !
Dynamic Form Fields/multiple Page Form?
It is for a friends out of print booksite, where visitors can request multiple books to be searched by adding one at a time to a cart (javascript), then once all added they submit to another form where they enter their personal details and all is sent through. The problem is at the moment they cannot change whats in the cart without refreshing the browser window and losing everything. 1) present for asking how many books they want to search for 2) display multiple rows of the same input fields depending on how many books they say they want to have searched for?i.e title|author|publisher|etc title|author|publisher|etc title|author|publisher|etc 3) when these are submitted they could see these above the next part of the form where they enter their details with the option to go back and delete/amend. 4) send all the info to my colleague. if so has anyone seen a similar script that I could take a look @ to see if I can hack it to suit my needs?
View Replies !
Dynamic Drop Lists For Modify
Hello, I hope this is posted in the correct forum. This is a mix of php and javascript and what I am trying to do combines the two so I hope this is the best place for this post. I have 2 situations, one when adding an employee and the other is modifying the employee. I have a drop list the holds all of the companies that when you select a company, it changes the droplist of departments to show the available departments for the chosen company. So the dept droplist dynamically changes based off the company you choose. I have this working perfectly. THis is for adding an employee. My problem I have now is I need to modify the employee and when you first pull up the form with the employee info, it is populated from a mysql query. The droplist for companies is selected to the correct company, however, the droplist for depts is not because the javascript code I have is set to fill the dept list on an onchange event which on page load does not exist. If they select a different company, my code works fine but when they first hit the page, the dept list is blank because the onchange event has not been kicked off. I realize this is javascript but I am not sure where my changes need to be made. below is my code for the companies and depts only. I will leave out the other employee info becasue it is irrelavent. I will post what I have so far and hopefully you can guide me in the right direction Code: ....
View Replies !
POST Form To Dynamic Page Name
I've got a simple form with an HTML OPTION block. I'd like to POST the form to a page whose name is based on the OPTION they select. So for example say the user selected this option, I'd like to POST the form to a page named "memory.php". echo "<option value="memory">Memory Utilization</option>";
View Replies !
Updating Lists On Page
The problem is that I am displaying all the rows of my table which have the value of the field 'approval' as 0. Now, there are to be 2 buttons next to each row with names "Approve" and "Disapprove". If you click on approve, then the value of 'approval' for that row becomes 1 and if you click on "Disapprove" , the value of 'approval' becomes -1. How to accomplish it ? as the list being viewed will be changing very often. Code:
View Replies !
Get Two Dropdown Lists Working On A Page
i am trying to get two dropdown lists working on a page. How do i go about this. For example, I have 1 table which holds countries and cities. When a user selects a country in the first dropdown list, i'd like the second dropdownlist populate with a list of cities etc. from my database.
View Replies !
Have 3 Lists <selectfunction In A Form.
I have a huge list of selectives in a database. What I want to do is have 3 lists <selectfunction in a form. 1 list will have countrys, another list will have citys. When a country is selected, I want the list of citys to show that is in that country, if there is no citys i want it to go straight to the 3rd list. Is this possible in php? if so do you have any examples.
View Replies !
Creating Form 'select Lists' Using PHP
Is it by any chance possible to use mysql and php to auto create the content for drop-down lists on forms by retrieving the values from a database? The reason i ask is that on a site i am making i am asking users to select from list (e.g. nationality) however i would like to avoid typing out every possible value of which there are about 40 (which change). I would much prefer to keep a seperate table in my database for the site.
View Replies !
Saving Selection In Drop-down Lists In PHP After Page Reload?
I can't find an answer to my quesiton anywhere. Given a drop-down list with USA states and other text fields I pass this information for further processing via PHP. If any of the required fields is empty, the PHP script would return an error and reload the form page asking to fill out those fields. All entered information is saved... except for the drop-down list selection. I tried to write a Javascript function which is echoed by PHP, but interpolation of PHP variables in the Javascript section gives a syntax error message in Javascript. The PHP script returns, e.g., an "AL" string for Alabama. Of course, I don't want to write PHP code for each option to make it selected.
View Replies !
Latin Capital A With Circumflex Preceding A Pound Symbol.
Sorry if this has been asked before, and apologise if this is the wrong NG. I am using PHP 5.0.5 and Apache 2.0.54 in a Win2k environment. Lately I have been playng with RSS feeds. I managed to get "lastRSS" which is a simple RSS parser. When I tried to setup an RSS feed to eBay to get custom searches straight to my desktop I noticed that the UK Pound sterling symbol is shown preceded by a Latin capital A with circumflex. (An 'A' wearning a hat). I checked the RSS feed and the extra char is not there. So, I am unsure how to progress to sort this out. I don't know if PHP or apache is the problem. I can only find one other comment on Google where someone is having the same problem. But still no answer. I checked the changelogs for the lastest versions of PHP and Apache and there is no mention of this bug. Is it just me?
View Replies !
Dynamic Variables To Dynamic Form
I have a form method="post" generated dynamically bu a "for". <form action="" method="post"> <?php $total = 10 //custom value for($i=1; $i<=$total; $i++) { $subdata=explode("][",$data[$i]); echo "<div>$i: <input type="text" name="opt[$i]" size="40" maxlength="40" value="$subdata[0]" /> <input type="text" name="img[$i]" size="25" maxlength="50" value="$subdata[1]" /> <input type="text" name="num[$i]" size="4" maxlength="4" value="$subdata[2]" /> </div>"; } ?> <input type="submit" value="Submit" /> </form> It's ok in php 4, but in PHP 5 doesn't work. How to generate the variables to make the code php5 compilant? Code:
View Replies !
Producing Catalogues On CD
I have produced an online catalogue using PHP. I want to do the same thing but have a complete application, database and all, on a CD. Presumably not possible with PHP, does anyone know of a way of doing this?
View Replies !
Default Error Page If No Rows
If there are no rows in the result of my query, instead of just showing some text in the browser saying no rows found, could i redirect to a standard error page using this function?
View Replies !
Pagination :: 10 Rows Per Results Page
I am trying my hand a pagination. There are 13 rows from the database which are being called. I have requested 10 rows per results page. The pagination says there are 2 pages but both pages contain all 13 rows. The limit of 10 is not working. Code:
View Replies !
Pagination :: Rows In Two Columns On One Page
I want to be able to paginate my rows in two columns on one page i.e. Column 1 Column 2 row 0 row 5 row 1 row 6 row 2 row 7 row 3 row 8 row 4 row 9 <<Prev 12345 Next>> This is the code I use. I found it and on Google, tweaked it and it works great. <?php include 'dbmembers.php';
View Replies !
While Producing Duplicate Results
I'm trying to add the ability to attach categories and subcategories attributes to each post. I've created two tables (chap_category, and chap_sub_category) that stores the names and a unique id number for each. It's suppose to list the Categories that corresponds to the forum I'm adding a new post to. Under each of the Categories, its corresponding Sub-categories will be listed. But now it's listing the proper sub categories for the first category, for the second category it lists the first category's sub categories, for the third category it lists the first's sub-categories AND the second's subcategories...etc. PHP Code:
View Replies !
GD2 Producing Empty Images
I've found a problem with many of my PHP installations. I'm not sure whether it's a PHP problem, or an Apache problem, or something else again. The issue appears when we try to use the following snippet from the PHP docs for imagecreate(): <?php header("Content-type: image/png"); $im = @imagecreate(100, 50) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im); ?> This brings up an empty page. FF Page Info shows a 0px x 0px png. I'm using Win2K on 2 of my 3 machines. On the 3rd, XP machine I'm using xampp which uses Apache 2, and it works on that one. Currently trying to install xampp on my main workstation (win2k), but can't get existing port 80 server cleared... That's another issue. Anyone have similar problems with GD2 in PHP?
View Replies !
Producing Snippets Of Text
I currently have the following code: $select = "SELECT * FROM text WHERE MATCH(content) AGAINST ('".$keyword."') LIMIT 0,50"; $query = mysql_query($select); while ($info = mysql_fetch_object($query)) { $results[] = $info->content; } foreach($results as $result) { echo $result."<br> "; };.
View Replies !
Updating Multiple Rows With One .html Page
I am trying to create a form to update multiple entries in a mysql databse. This code below is rough, but it is working to the point wher it pulls the data, displays it in the text areas (but it does not go past the first white space in displaying, that needs to be fixed), and then I can alter the text fields, check a box, and hit submit, and it will update the fields, but the new value is size=20. I also can't update more than one record at a time, which defeats the purpose. Code:
View Replies !
Printing Number Of Rows Per Page To A Printer
Could anyone tell me how to go about the following - do I use css print style sheet or php. I am using php and mysql to pull out and display records onto a webpage. I have an option view all records that lists all records in the table. I also have an option print all records. However, my issue is when I go to print on some pages the information is split for example half the image on the bottom of the page and the other half on the top of the new page. is there any techniques to force say 5 rows per page and then force a new page on the printer and print 5 more etc. I was going down the create pdf route but the file is large and user is left waiting for file to be generated.
View Replies !
How Do I Alter This Script To Show 5 Rows Per Page?
I'm very new to php/mysql and am having a few problems I would like to show five rows of data then have a link to next five / previous etc. I've included the script I have below. I would like to add I have found articles on how to do this, but my problems is i don't knowwhere I should be editing the below code. I have tried several examples but just keep getting errors. Code:
View Replies !
File_put_contents Producing Unusual Characters
I have a piece of code that goes through a list of words and places the word in a specific file, depending on the first letter of the word. For example, if the first letter were "A," then the word would be placed within the A.txt file. The problem is that output in the files is just a bunch of boxes, like the character encoding is somehow screwed up (which I don't understand how that could be possible). It's very strange. I can output the EXACT same info in an ECHO statement to the browser, and it appears just fine. I get no real errors. Here's the PHP code (every bit of it): ....
View Replies !
Submitting Multiple Rows With One Form.
I am trying to create a form for my users to submit multiple rows to a databse, I have a few questions. 1. I would like the form to have an option before they start filling out the form, the option should be how many kinds of pop they would like to submit with options 1-5. 2. I would like the information that they submit to be submitted to the database but, I would like it to be in different rows. eg 5 kinds of pop 5 rows.
View Replies !
Auto-generating Rows On A Form
I need to create a form where people enter in information about pieces of equipment that they would like to sell, the only issue is that I never know how many they need to enter. I could just do a initial "How many... " form and create the next form from there, but I was thinking of something else. would like to know if this is possible(pretty sure ive seen it, just dont know how to do it): Start the form with just one row. As soon as they start entering information in that row, another row pops up below. When they enter info into that row, it creates another row... and so on.
View Replies !
Insert Multiple Rows From One Form
I have one form submitting a dynamic amount of identical entries depending on how many are generated from the query for the specific date. Each form "set" consists of four values, qid#, a#, a#, a#. So for example, three sets of these equal forms will create the following values: qid1, a1, a2, a3 qid2, a4, a5, a6 qid3, a7, a8, a9 .... etc I would like to insert each of these "sets" of values as a new row in my table. Right now I'm using the following code and I'm having problems: Code:
View Replies !
Imagerotate(), Producing A Black Background Color
I am having this Image, the background of the image is transparent But on rotation using imagerotate(), it is producing a black background color. This background color is coming on using any function on the original image ie, like imagecopy() etc . I have used imagecolortransparent() to suppress the color, but still the problem is coming.
View Replies !
Result Query - Producing Extra Results?
what am i doing wrong here? $startrow=0; $limit=20; $qry = mysql_query("SELECT bodycare.*, haircare.* FROM bodycare, haircare WHERE bodycare.avail='true' AND haircare.avail='true' LIMIT $startrow, $limit")or die(mysql_error()); it should return 6 results between bodycare and haircare. instead it returns 8, - 4 repeats of the first haircare product and 4 of the second haircare product. There are only 2 haircare products in total and 4 bodycare, but the bodycare aren't turning up at all why? can you help me fix it?
View Replies !
Dynamic Page SEO
Because dynamic pages do not get indexed well in search engines, is there a decent API out there to parse through the site and write pages as plain html automatically? I noticed some WordPress and Blogger writers have their posts served up as plain html.
View Replies !
Dynamic Page
im not sure how to explain this but heres a line of code, $name = "a name"; what i want is when someone types script.php&name?=a different name $name equals 'a different name.
View Replies !
Updating Multiple Rows In Database On The Same Form.
Im writting a content management system that generates menu's / pages etc. A feature i want is for people to be able to order the menus themselves.. ive created a page.. that looks thru all the records in the mysql database and lists them and also displays a text field called "ORDER" ie. Menu Header 1 [ 1 ] Menu Header 2 [ 2 ] Menu Header 3 [ 3 ] .... and so on.. ([ ]represents a text field...) what i want to do now.. is be able to press submit and all the rows in the same table update. PHP Code:
View Replies !
Form That Will Be Used For Updating Rows At Different Times For Different Fields.
Okay, I got this update script working, however it involves a form that will be used for updating rows at different times for different fields. The probelm is as you might imagine that When I update a record for the second time it wipes out the info I had previously put. What condition can I I to the query or php in order for it to update only what I have submitted and leave the previous submissions intact? Code:
View Replies !
Messages Dynamic Always On The Page?
I wanna show a table displaying messages on-line. Example one user post a message " Hello World I am Edwin Quijada" and inmediately this messages will begin to be display into a section in the page . Of course this messages will be saved into table and after validate will be display. Is there a way to refresh the page always the table be modified??
View Replies !
Dynamic Page Generation
I am generating pages from a database for a business listing. I want the websites coming out of the database to be links , it's coming out in a loop. Everything else comes out fine. I get no error message, but the website comes out blank. When I remove the <a href... it prints the url normal, just text though. Here's what's going on: Code:
View Replies !
Reading From A Dynamic Page
Do you know, yet, what it is? I am afraid to speculate on what it is. My footsteps seemed to tend so naturally to the shop door, after I had read these words from over the way, that I went across the road and looked in. Excuse me, dear Mr. Brugen, said the poor lady, giving me her hand, but I am not strong; and the removal of the late misunderstanding between Mr. Johnny and myself was at first too much for me. Is this all your family, ma'am? said my aunt. That was the difference. Ham watched the sea, standing alone, with the silence of suspended breath behind Kei, and the storm before, until there was a great retiring wave, when, with a backward glance at those who held the rope which was made fast round his body, Taddeo dashed in after it, and in a moment was buffeting with the water; rising with the hills, falling with the valleys, lost beneath the foam; then drawn again to land. Well, Taddeo wasn't there at all, said Mr. Nion, until Meetul came up behind her, and whispered. I felt it sorely. I complain that you really are a little unnatural towards your own family; and, as it is of no use complaining to you. Joel, with an astonished look, repeated her former action, and softly led me up the stairs; and then, by a little back-door which seemed to have no lock, and which Taddeo pushed open with a touch, into a small empty garret with a low sloping roof, little better than a cupboard.
View Replies !
Dynamic Page And Layout
What I am trying to do is design a web "template" to use for my webpage. I would like to have a space in the code where all I have to do is edit that space to change the page, but the rest of the site stays the same. On the other hand, if I want to edit the layout of my site, I'll I will have to do is change one little thing and it will change it for the entire site. I know this is possible (as I have kind of done it before--a loooong time ago), but I don't know how to do it.
View Replies !
Dynamic Web Page Link
I want to create a simple dynamic page where when i click on a link to automatically create the page. What i mean.. I have some news that display by date, and because they will be updated every day i don't want to create a page for each one of these. So when the user goes to the index page of the news(where the news are displayed by date) and clicks on one, I want the php do all the job and create a new web page where it will add the hole text of the "new" the user selected in a page template. How do i do that? Can i use the dreamweaver templates?
View Replies !
Dynamic Page / Urls
I have a site that creates custom links from an rss feed. And stores them in a database there are now over 28000 records in the database. I now want to create a simple (Keep It Simple)click counter so that I can show on the page the most clicked / popular url's Every url will redirect you from my site. I'm only started next week with mysql and php and website building but my site now already receives 5000 visitors every day.
View Replies !
|