Drop Down Menus And Form Processing
I select a client from the first drop down menu, then a list of events for that client is shown in the second drop down menu. I then want to select the event from the second drop down and automatically go to a form I built "editevent.php3" showing information echoed from mySQL for that event. I have started the code, but know it is not complete. Code:
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
PHP And Drop Down Menus
I've looked through the forum rather extensively and my qestion is similiar to the question by Brian_F and answer by "saintaw" a couple of days ago in this forum. I already have a functional page that has several dynamic drop-down menus from which the user selects a topic of interest. My question is how to reference their choice from the drop down menus in order to display the results of their choice. I would like the user to be able to choose a subcategory with one of the drop down menus and then be able to view the questions related to that subcategory. I currently have a nested for loop which displays the categories and subsequent drop-down menus for each category, and I'm using PHP and MySQL to do the dirty work. code:
Php And Drop Down Menus
I have a question about PHP and drop down menus. Should I be using PHP for my drop down menus or should I be using java script? I have a whole contact form that is programmed in PHP, but I have never done a drop down menu with PHP, is this possible? If anyone knows of any great drop down menu tutorials in PHP.
Dynamic Drop-down Menus
I am developing an on-line booking system, and am designing a script which creates a booking "area". An area has the following fields: Area Name Day start time (the time of day bookings can begin e.g 9 AM) Booking Time Slot (the length of time for each time slot e.g 30 mins) Day Finish Time (the time of day bookings must finish e.g 6 PM) What i require is a method for locking down the users input so that the finish time is a list that is created that is divisable by the number of minutes used for a booking time slot . e.g. if the start time is 9 am and each booking time slot is 30 minutes, then the user must select a finish time which is divisable by 30 i.e. either on the hour or half past. I have looked at several methods for doing this but cannot decide what would be suitable. Ideally I want the user to be able to select the start time from a dropdown (static html would do) the select a booking time slot (again a static html dropdown would surfice) and then a dynamic dropdown be created with a list of Day Finish Times. My questions are these: Is this the right way to go about doing this - are drop downs my best option? If so, is calculating the day end time list the best way to go? Would javascript be more suitable, rather than a php form?
Getting Data From Drop Down Menus
I have a drop down menu and I'm trying to find out which option they have pressed. I need to use the $_POST method to do this. Below is what i've written so far, but it's showing every time the messages: "You don't have enough points" AND "you gained blah blah exp" I've blocked out some of the stuff that calls up files and stuff, just for security reasons Code:
Insert Date Using Drop Down Menus
I know how to insert a date by filling in a field but I don't know how to do it using a drop down menu. One menu being month, another the day and the last the year. Any code snipplets I can disect and play with or tutorials on this?
Drop Down Menus And Mysql Insertion
I'm looking to create drop down boxes for a user to select the date and then have it insert what they select for month, day, year, hour, minutes and insert it into mysql. It needs to be organized in a timestamp like so: 2007-02-28 21:06:40 I've created the drop down boxes and it works pretty well: Code:
Values Into Radio/check And Drop Down Menus
I am attempting to create an update form where the current fields in the table are populated into input boxes and then can be altered where necessary. I was wondering if it is possible to pre check radio buttons, check boxes and pre populate drop down menus based on the results currently in the table. eg. if the gender of a person is male then the radio button will be pre checked as male. How would this be done.?
Form Processing
I created a form and after submission it is checked if the user filled out certain field. If not he/she kan try a Try Again button and is returned to the page with the form. I constructed the form so the different textfields after the user clicks Try Again still contain the details she previously filled out. This works fine with ordinary text input fields, but not at all with checkboxes and a textarea, presumably because these fields do not have a 'value' attribute that could contain the $textarea or $checkbox variables. Hope I made myself clear.
Form Processing
I have a file (index.html) and this file will be submitting some information to a PHP file (file1.php). In file1.php, there will be a few tests on the data submitted, and depending on weather or not the data is acceptable or not, it will eather forward the data to another PHP file (file2.php) or return to index.html with an error. My problem is I don't know of any way to forward the data submitted to file1.php, to file2.php. Adding to the original problem is that file2.php is located on a different server, and its contents will not be given out.
Form Processing
i am currently building a site that will provide a free e-mail service hosted by bigmailbox.com. i am also providing a community area, where users can sign-up and post messages. i was wondering if there would be a way to combine the form for the e-mail program with the form for the community and add the same username and password to both programs. here's what i would like to do: have one form that would include several different fields. upon submitting the form, i would like for some of the variables to be posted into my mysql database, and other variables (some of the same ones posted to the database) be passed to a cgi script on bigmailbox.com's servers.
Form Processing
Been working on this for weeks and am quite frustrated that none of my varied modifications have made much of a difference. Is anybody able to help me out with this? I have abbreviated the code to highlight the problem areas. When the form data is emailed, if more than one checkbox (each with a distinct name & value), is checked, the info output in the email of selections #2 and #3 are repeated 2 - 3 times. Other than that small glitch, everything works perfectly. Code:
Form Processing
I'm trying to build a registration form. I have the form completed and everything. The action of the form is currently on _Server['PHP_Self'] so I can view if the script is working without actually inserting anything in a database. I currently new to PHP, so I can't understand everything on why it's not working properly. I have 6 input fields , for the user to put in. Here is the code I currently have. The problem I'm having is I have this certain line in the code if ( eregi('^[[:alnum:].'-]$', stripslashes($name) ) ) to check for openspaces or anyother character. Now I have it saying that if it is true, echo a line, so I can see it is currently working. The problem is even is there is only letter in it, it still does the 'else' function. I don't understand why. Code:
Form Processing
I have a MS Access database which holds my products. On my products.php page i use PHP to access the products and output them in a list on the page. As well as displaying the results i echo out a text field after each record displayed called 'code', which is for the user to enter the product code of the item they wish to buy into. Because text field will appear after every record in the database i have called it 'code' in order for me to then have some php code submit all of the fields which the user has filled out and place them in a single field within my database and have each order nuber separated by a comma. Code:
Processing Dyn. Form When I Don't Know How Many Rows
I build a form dynamically from a mysql database, and then name each record to build a form. How do I "display" it once it is submitted if I don't know beforehand hand many rows, and therefore, how many IDs there are going to be? Code:
Form Processing Within PHP_Self
I am running forms from one script, posting at PHP_Self... So, whenever I want to process some submitted data, I use PHP Code:
Processing Form Data
I've just built a form that enables users to pick a city from a pull down menu. On the processing page i want to assign the city picked to a variable. So lets say the name of the form is "city" and i want to assign the city picked to a variable. $citychosen = ******** What do i use to get the chosen city there. I want to use the variable in the next part of the page which uses an SQL query to show info about the city chosen. So the SQL query would look like this Select * from table1 Where city=$citychosen .
Form Processing With Checkbox ?
I am currently writing a webpage that displays a list of records ( each record has a checkbox associated with it) to allow users to select any record they want to delete (much like in "hotmail" or "yahoo" e-mail where u can select particular message to delete) ? Anybody have any idea how to do it ? And one more question, I like to write my page so that when the user click on a checkbox associated with a record. That record (that row) is highlighted (like in "hotmail"), anybody has any idea how to do it ?
Php Form Processing Program?
Are there open source php form processing programs? I know there are free php form mail code, but if it's classified as open source, I would think any bugs can be fixed much faster. If not, then which free program is the perfer choice?
Dynamic Form Processing
Im writing a script for processing a form created by a csv file. this form is created through a loop, where $num is the place in the loop. Code:
Odd Result From PDF Form Post Processing
I have a PDF form that contains a submit button with an associated action that causes the populated PDF file to be submitted to my web server, similar to POSTing an HTML form, but instead it happens via Acrobat, no HTML involved. Code:
Form Processing - Select Multiple
I'm trying to process a form that contains a SELECT with the MULTIPLE qualifier, but PHP only seems to be receiving the last selected entry in the list rather than all selected entries. I tried parsing as an array (because the HTML definition says it should pass key pairs) but that gives me a run-time error saying the appropriate named variable isn't an array. I've tried submitting to a script that displays php_info and the _POST vars entry lists just the single value. I know that SELECT MULTIPLE is rarely used, but has anybody tried this before and encountered similar problems. any pointers on how to retrieve all the selected options gratefully received.
Selective Form Data Processing
I have *quite a bit* of form fields for a certain form that needs to be eMailed. The problem is that when completely filled out, there is quite a bit of information to be emailed. How would I go about telling the PHP to ignore any forms that are not filled out -- letting it process less code? If this helps, the coding for the page that does the actual processing is: Code:
Form Processing With Input Validations
I am creating a form Form1.php that posts to the another form Form2.php. I have input validations on the first form. I need the user to go to the next form ONLY if the inputs from the user are valid. I have not been able figure out how to do this since the first form always posts to the next form no matter what. I would really appreciate if somebody can share their php knowledge and give me some idea on how this is done in php.
Processing Http Auth From Outside Form?
I'm trying to make it possible to login from a cpanel account from my main site login. I found some code that opens up the socket, but how would I then display or redirect to that page? Just to reiterate what I'm trying to do, rather than having them type in: lonestarservers.com/cpanel/ and then have the http auth form popup, I want them to be able to type in their user and pass on the index.php page and have it process it for them without that http auth popup. Code:
Form Processing To MYSQL Database
That database and table are set up. The table is called 'reservations' and it has 5 fields to hold the input data. However I keep getting this error: Parse error: syntax error, unexpected $end in /Applications/xampp/xamppfiles/htdocs/paul/reservation_send.php on line 38 The funny thing is though that there is no lone 38, the script finishes on line 34. Any ideas on this one? Is the coding I have used the best way to write data to a mysql database or does someone have some better code. I am finding this quite frustrating as you would think it would be an easy enough script to do but I don't seem to be having much luck with it. Code:
Form Processing And Content Management Options?
I belong to an organization that needs to create a form by which people who want to present papers at a conference can submit their work for review. If they attach a paper, we would like there to be some kind of virus scan, but if we have them copy and paste the text of it in can it retain the paragraph breaks? Ideally they want the submitted papers (either from the attachments or the text field on the form) to be accessible online; secondarily they are OK with everything getting forwarded to one person's e-mail. Eventually they want to have this evolve into a content management system they can use to fully control and manage the paper submission, review and approval process, so if someone out there knows of a solution that could do this and we can start with now at the lower level that would be ideal. Based on my experience with PHP and understanding of how it works, I would like to do this in a PHP based system.
PHP Form Processing Hangs Page Load
I am trying to write a simple PHP script to process a form.. the function seems to be working fine // subscriber is the users email in the form if (( $subscriber ) && ($_SERVER['REQUEST_METHOD'] == 'POST') ) thing is while this processing is taking place the page load hangs... in IE i see nothing the page background, in Firefox (even worse) I get only 1/2 the page.... I would like the whole page to load the the processign to take place, except that my PHP is 1/2 way down the page, inside the form
Enable/disable Html In Form Processing
I've got a form, where it submits some info and adds it to a txt file. The file is then displayed on the front page of my site; however, there is a security problem i'd like to fix dealing with html. How would you go about disabling the use of html in a form?
Form Processing And Sending MIME Attachments
I am trying to track down a feedback form similir to Matt Wright's script that would allow the the sending of File Attachements added to the email by the user. I am looking at using MIME email format, with an auto detection of mime type. I would like the user to select a file via a browse button, then when the form is processed it attaches the file as a mime attachement. Is there anyone who could help me? or provide me with some urlsof where I could find such a script?
Problems With Form Processing: Array_key_exists() And While (list($k,$v) = Each($arr))
I have an HTML form I'd like to process. <select name="items[]" multiple> <option value="doughnuts">Hot Doughnuts</option> <option value="coffee">Hot Brewed Coffee</option> <option value="tea">Hot Tea</option> <option value="cake">Sponge Cake</option> <option value="chips">Hot Chips</option> </select> The problem I have it where I follow the Programming PHP book: // Should the 's' be the name of the select tag, or the name of // the submit button? if (array_key_exists( 's', $_POST )) { $selected = "User selected these options: "; while (list($k, $v) = each($_POST['items'])) { // Is $v "doughnuts" or "Hot Doughnuts"? $selected .= "$v " } // ... }
Newbie ?: Need Sample Form Processing Scripts
I'm on a very short deadline and I need only to process an HTML form with a few data fields. I need to do three things, all three triggered by form submission: 1. capture the form field names and their matching values, 2. Write that data to an email and send the email to one or more addresses as a single message with multiple recipients. 3. Write the same data into a comma AND quote delimited text file. Save the file in a named server sub-folder. If the file exists, append each subsequent form submission. If not, create the file and write the first record. Perhaps I've missed such scripts in my own searches on the web and on php.net. Can anyone point me to some web sources for examples of such PHP scripts just to get the ball rolling?
Multiple Form And Processing With A Process.php File
I got a multiple result form from dhtmlgoodies.com that looked like it was working great, but for some reason it will not send the multiple selected results to the process file. Below is the actual form file and a screen capture of what it is. then below that will be the example basic process file that should grab the arrays and echo them back. Code:
Html Form Processing - Saving Data To A File...
ok.. basically, what I'm doing is setting up a very basic news script base on flatfile storage (mostly to teach myself PHP by doing, which is the best way I've found to learn). set up the php and the html templates first, and all that works fine. I set up the admin menu, and have a edit config script that works great (edits the config and file locations values via an admin form) now, am working on a script for the admin to edit those html template files directly from the admin panel. example template editing form:
PHP Form Processing With URL Parameters And Forwarding To HTML Page
I felt this query would be relevant to HTML and PHP forums. I am currently modifying a PHP IMAP script which allows the user to view their email via a web browser. I have made use of URL parameters which are passed to the webserver, and processed by the PHP code (better than javascript). No problems so far :) When I have reached a point where I no longer need these parameters, I use PHP header/location forward to reload the HTML form page. If my page was http://www.mysite.com/ foo.html and I was forwarding** to this specific URL (without any ***?myval=????&anotherVal params). When I reload the form**, I keep my URL parameters that were present*** the previous time the form was processed (they are there in the URL_REFERRER). Can someone tell me how to lose the parameters, so I just forward to foo.html. :)
PHP Form Processing With URL Parameters And Forwarding To HTML Page
Apologies for cross-posting, but I felt this query would be relevant to HTML and PHP forums. I am currently modifying a PHP IMAP script which allows the user to view their email via a web browser. I have made use of URL parameters which are passed to the webserver, and processed by the PHP code (better than javascript). No problems so far :) When I have reached a point where I no longer need these parameters, I use PHP header/location forward to reload the HTML form page. If my page was http://www.mysite.com/ foo.html and I was forwarding** to this specific URL (without any ***?myval=????&anotherVal params). When I reload the form**, I keep my URL parameters that were present*** the previous time the form was processed (they are there in the URL_REFERRER). Can someone tell me how to lose the parameters, so I just forward to foo.html. :)
Processing Form Data And Emailing It In Html Format
I have a form that when submitted it just sends a regular email in plain text with all the information. However I would like to be able to format the email so it is more organized with a table that contains the submitted information. However all the tutorials I have gone over does not show how to pull information from the form fields and put them in the html message itself. They just show how to send an email in html format without any form data. My current code below is what I have been experimenting with and just sends plain text. Can anyone give me some assistance as to how to have the form data submit in html? Code:
Processing Radio Boxes And Hidden Form Fields At The Same Time
I have a form that needs to be checked. It contains 4 radio boxes a submit button and 4 different hidden fields. How do I get my php script to check if a radio box has been selected and tell the user to check a radio box if he hasn't? The script I am currently using doesn't work; if the user chacks some thing then it proceeds as usual, but if it is left blank then the program freezes up and nothing is displayed apart from the stuff outside the <?php?> tags.
Form Drop Down Boxes
I have a bunch of products i want to add to a database, i have a form to submit the products to the database. What i need to crack is to have a drop down box for category 1 (beer or wine) and then automatically populate the drop down box for category 2 depending on the first selection if cat1 = beer then cat2 options = Lager, Malt, Stout. if cat2 = Stout then cat3 = Guiness, london, Old boot. if cat3 = Guiness then cat4 = Bottle, Can. I have four sub categories so need this to work on the fly before adding all info to the database ...
Form Drop Down Convert To Checkboxes.
so my client Has changed his mind reguarding the layout style of a form. He wants to have checkboxes where there are dropdown menu's So he can select more than one option. This is kewl with me Yet I used the naming attribute Name="heating[]" (to handle array) in all checkboxes releated to heating instead of Name="heating" that was used on the orriginal form. It keeps telling me I have missed Fields on submission. :/ Im not getting it.
Passing Values Using Drop Down Menu To Same Form.
how I am able to do this without the use of a "submit" button - ie onchange. Here is what I am working with. <form name="form1" method="post" action=""> <select name="MyNumber"> <option value="One">One</option> <option value="Two">Two</option> <option value="Three">Three</option> <option value="Four">Four</option> <option value="Five">Five</option> </select> <input type="submit" name="Submit" value="Submit"> </form> <?php @print ($MyNumber);?>
Root For Including Www Link In A Form With Drop Down
I have everything working except what should be a simple issue I think, but I continue to miss it. My links end up in the root of my website: e.g. http://www.fitzssite.com/ www.devshed.com instead of simply www.devshed.com or http://www.devshed.com How do I point to a "blank address area" (don't know what to cal this...) for my links? Here is my code: PHP Code:
Populate A Drop Down List In A Form On The Basis Of A First Selection
I have developed a form to register a property in a db. The form needs the selection of a country and then based on that selection the selection of regions from the selected country. I have a program which allows selection of a country and then a region but it uses java script which I would like to avoid. I also just wanted one submit button if possible. Code:
Displaying Data From Mysql Database In A Drop Down List On Form.
I'm trying to do is display data from two different mysql tables from the same database in a drop down list on a html form. I have a fixtures table with the player1(userid), player2(userid), gameid, game, score1 and 2, what I want is to use the userid to get the players first name and surname from the members table (as it is a unique id), I need to do this bit before displaying it in the drop down. I think i need 2 querys to do this but when I have tried it it just echo's a blank value or the userid not the forname and surname that I want. I'm using the fetch_array function but just can't see where I'm going wrong, Code:
Form Processing: Change The "action=" Based On Pull Down Menu
I have an html form for that uses username and password to login to a specific area of the website. The "area" the user wants to go to is based on a pull down menu. Becasue the user/password info is in differnet databases, how can I call different validation scripts based on this input ? See below please. Somethinglike this: form.html: <form name="loginform" method="post" action="login.php"> <select name="loginform"> <option value="one">Section 1</option> <option value="two">Section 2</option> </select> login.php: @extract($_POST); if($_POST[loginform] == "one") { echo "action = /forums/scc/dispatch.cgi/_admin/AVFLogin" NAME="LoginForm" > echo "<input type=hidden name="autologin" value="1"> "; echo "<input type=hidden name="formstyle" value="standard"> "; echo "<input type=hidden name="returnforum" value="_admin"> "; echo "<input type=hidden name="returnmsg" value="acahomepage"> "; } else { echo "action = /path to different cgi "; echo :different values for hidden fields". }
Drop Down Lists Changing Depending On Other Drop Downs
I want to have a drop down system like this one. But without the radio buttons. I want to have 3 drop downs but have no idea how to go about it. I assume I will need to activate some sort of Javascript on the onChange event of the option drop downs.
Menus In Php
currently i have web application in php which has its menus created in javascript. if we do view source on the page, it displays all the javascript which is obvious n natural. but it displays all the file names of php too which are related with those specific menus. dont we have any way by which we can prevent it. as an alternate i m thinking of creating the menus also in php so that the names of my files dont get visible to the user from the security point of view. is it sensible to do so because it will be an extra overhead to the system for creating the manus everytime.
Dynamic Menus
how to have dynamic menu, say one option is selected from the first menu, and that option changes the 2nd menu options. ? yeah i have seen it work in JavaScript, (onchange) but what would the syntax be in php ?
Sticky Menus
It's common courtesy to ensure that a form with validation problems reposts with the fields still filled in, so the user doesn't have to start over, by echoing the variables in the Value attribute of the text fields, but I also want to have a drop-down menu to be sticky and retain its selected state when the page reposts.
|