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?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
PHP Script To Disable/enable Internet Access
We are finally getting DSL again... but our PC is in the living room... and the youngest has figured out that if he hits the right keys... he can bring up Internet Explorer. All is fine and dandy right now, but come next week... that things wont be so dandy. I am setting our LInux router/server back up soon, and would like a quick, easy way to enable and disable our internet access. What I would like to do is have a simple PHP page that says (iff network status = inactive) Your Internet Access is DISABLED Enter passcode to enable internet access [TEXTBOX] Then [OK] so on clicking "OK" if password = suchandsuch then run script" "/sbin/network start" or whatever the script is and refresh the page then iff network = active Your Internet Access is ENABLED [DISABLE] upon clicking of "DISABLE" run script /sbin/network stop and refresh the page Something to that effect.
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:
Html Enable
Is there a manner to restablish html code after using htmlentities or html specialchars.
Processing Html Forms
I am using php to insert values from an HTML <form> into a mySQL database. I am sending the data using method=post as some of the data may be quite large. Everything works 100% fine except for 1 thing values from the form that are hidden e.g. (<input name="auth" type="hidden" value="105"> ) are passed ok to the php script, but the mySQL insert query fails! I know this because an echo $auth; produces 105, but no data is entered into the mySQL table. If I change the form to: <input name="auth" value="105">, the mySQL insert query works fine! Data is inserted into the mySQL table! I have searched high and low to figure out what is going on. I am thinking that it is a fairly simple problem about how hidden values need to be passed, but I simply can't find the answer ;
Tracking Pixel In A Processing Script, Instead Of HTML Page
I have a Web form that is filled out on my company's web site. When the submit button is pressed, the form data is posted to a PHP page that (in the background) inserts their information into a database, sends them a confirmation e-mail, etc. Once the form processing is done, the user is redirected to a Thank You Page. The thank you page has the following code in it: [code]..... This code adds the user to an opt-in list so that we can send them other products and services. THE PROBLEM: Some of our affiliates collect our user's form data on their Web site via a co-reg page, when this happens, they are posting the form contents to the form processing page on my server, but the user never sees the thank you page, so the IMG SRC code above is never displayed, and they are never added to our opt-in list. QUESTION: How would I insert the same code above in my form processing page (that processes in the background) so that the opt-in occurs on the form processing page, and NOT the thank you page?
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:
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:
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
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:
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 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". }
Enable Session
I have installed Samba (linux) and it installed PHP 4.3.4 as will but it seems that by default it disabled sessions. Here is the config command: './configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib64' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib64/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--without-pear' '--with-openssl' '--with-apxs2=/usr/sbin/apxs2-prefork' 'x86_64-suse-linux' Is there a way to enable sessions?
Enable Php With Cgi Server
I'm having a problem. I have recently set up the cgi server, can I enable php with cgi server together? if I can, how can I enable php on the server without recompiling it?
Always Enable Addslashes
Is there a way I can always enable addslashes by including a line of code to the top of my pages?
Disable Cookie
I am using cookie to hide a variabe in send.php3 as following:send.php3: PHP Code:
Disable Checkbox
I have a checkbox that I set by php code to be either "checked" or "". I want to disable the ability of the user to check or uncheck it. I tried "readonly", but that didn't work.
Can I Disable $PHP_AUTH_PW?
Is there any way I can disable the setting of the environment variable $PHP_AUTH_PW? I'm authenticating via LDAP, and don't need (or want) the password available to PHP. I also don't need $PHP_AUTH_USER; the current authenicated user is available in $LDAP_USER.
How To Enable Register_globals On Php.ini
I am trying to enable register_globals at php.ini but after change the line at php.ini of php5 from register_globals = Off to register_globals = On it still not showing enabled at phpinfo(); page, what should I do?
Enable Only 3 Login Try?
I'm not too sure how but when this first came to my thought for my site, I think of cookies and or sessions but not too sure how to implement it.
Enable Flash
Basically I have mad a flash site, and on it a form which sends results via POST to a php form mail script. The issue here is I cannot get any variables accross to the php script. Here are the codes, for two atempts (I have also posted similar in Dev Flash forums). First action script: Code:
How To Enable Shorthand?
my server only recognizes codes starting with <?php some codes ?> I want it to recognize <? some codes ?>.. how do i enable shorthand?
WDDX Enable?
I have the code echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); Yet, my output is: PHP packetPHP to WDDX packet example How come it's not in WDDX format? What do I have to do to enabled WDDX? I'm on a Windows machine using Apache.
How To Enable ZIP Support In PHP 5.1.6?
My host updated PHP to 5.1.6 and now zip functions like zip_open do not work, it says undefined function or something similar, "zip enabled" doesn't show on phpinfo() eider. Is there an easyer way to use the zip functions? Maybe by downloading and including the libraries by include lines? Or only by recompiling the php? (this one sounds complicated).
OT? Php Form And Html
Sorry to ask an old question, but I cant seem to get this simple php to work. Ive looked at old postings and for whatever reason cant seem to get this to work. Any help is greatly appreciated. Im new to PHP. My PHP works just fine (apparently), but doesnt work the way I want it to. All I want to do is accept a login and password and then send it off to a perl script on 'submit'. It never appears to get into my 'if' section, any suggestions? I cant seem to get the following to work: <html> <body> <?php if (isset($_POST['Submit']) && ($_POST['login'] == 'login')) { print "Login: $login "; print "Pass: $pass "; $file = popen("/home/http/website/cgi-bin/gs_do_search.pl $login $pass","r"); while ($line = fgets($file,1024)) { // display it now } } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Login: <input type="text" name="login"><br> Password: <input type="password" name="pass"><br> <br> <input type="Submit" name="Submit" value="login"> </form> </body> </html>
PHP XML XSL HTML Form
I am working on a generic (php) script to produce (X)HTML Forms through XML and XSL based on field-definitions stored in a database. The basic way i did HTML-forms in PHP was like this: http://212.204.203.71/test/simpleform/simpleform.php source: http://212.204.203.71/test/syntax/simpleform.php This basic form is validated when it is submitted to itself... if validation fails then an error message is created and displayed on the page...otherwise validation is ok and we can do some inserting in the database and/or redirect to another page. Remark: the fields that are filled will be automaically filled in if the page is submitted to itself (that will be my problem in the XML/XSL version of this script). Now we go over to the XML/XSL version of the script above: I therefore created an XML file (holding the field definitions) see: http://212.204.203.71/test/xmlform/form.xml And further i created an XSL file to transform the XML file into a HTML form. see: http://212.204.203.71/test/xmlform/form.xsl Then i used a file form.php to put the XML and XSL together using some PHP xslt functions: http://212.204.203.71/test/xmlform/form.php source: http://212.204.203.71/test/syntax/form.php This all works fine but now the problem. I am looking for a concept of how to get the formfields filled in again after submitting the form because in XSL this is not as easy as with my basic form. I tried to send firstname and lastname as parameters in the function call and to put them as parameters in the xsl file but that does not work and it is not ok at all because my intention was to build a generic script.... Hope you see my problem as it is hard to explain.
|