How Do I Control Text Box Pre-Filled Entries
Can someone tell me how to control whether or not a text box is automatically pre-filled. In other words, on some web sites, when you visit them, the username and password automatically fills itself. But on other web sites you have to fill in the username and password each time you visit them.
There is one web site, Yahoo! dot com, where the username and password text boxes are never pre-filled. I have to type in my username and password for Yahoo! dot com each time I restart my browser. It didn't used to be that way. Yahoo!'s web site used to automatically pre-fill the username and password text boxes.
The web site that I'm working on uses cookies. I suppose that I could put a cookie $Name variable in a text box - but there may be a better way of doing it, though.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Keep Control While Passing Form Entries
I have the following code in an intermediate file, separate.php, passing values from a form to a receiving file: form -> separate.php file -> vendor's receiving file <?php $url="https://receivingsite.com/receive.jsp?"; foreach($_POST as $key => $value){ $url .="$key=" . urlencode($value) . "&";} header ("Location: $url");?> I place other code (all working), ahead of the code in question. Then, the portion of the other code that sends an email to me containing the values from the form, still does that. The portion of the other code that opens another page, does not open it any more. Instead, a nuisance (to me) confirmation page generated by the vendor's receiving file opens instead of the page I specified in my other code. This is the part of the other code that does not open any more: print "<meta http-equiv="refresh" content="0;URL=http://mywebsite.com/next.htm">"; I have to send to their receiving file with the confirmation page because the regular one they designed for this purpose (no confirmation page) requires that the form's redirect field be included, and that is a problem to me (not to most of their customers) because I have two buttons in the form going to two different pages, instead of one button like all their other customers would have. The receiving file (confirmation page) that I have to send to was designed with a different use in mind, but I have to send to it because the regular one must receive a form field that I do not want to include. So it seems that I need to replace header ("Location: $url"); with something else, or make some other change or addition.
Populate MySQL With Multiple Text Box Entries
I have about 300 rows of mysql data which I have chosen to diplay with a text box at the end of each row, that is available for adding comments. I would like to be able to add comments to entries and then have an update scripte that would take the text box, named "MC" and place the data in its row identified by a hidden field which would corrrespond to the Primary Key of the MySQL Database. I've done something similar using check box arrays, ie. Checkbox name="MC[]" My question is whether I can write a script that would test for a value in the corresponding text box, and update the MySQL data accordingly. I have also provided in my display script that if the MC column is already populated in MySQL it will not display in the form.
Already Filled In Form
i ve made this form in html and i want it to already be filled in with data from the database if it already exists PHP Code:
Help W/ Zero Filled Numbers (strings....)
I need to be able to loop through a set of filenames (pictures), and if they exist, display the files. No problem with that so far, only that now, the filename system has changed (we went from 100 pics per item to 999)... I can't get to some of them. pictures are named like this : Lcal0113_z001.jpg to Lcal0113_z999.jpg (not always all of them are there). Now, if I simply try to loop through the 999 Nr's , it won't work for all of those that are below 100 (because of the "zeroes" that stand in front, no surprise...) (Lcal0113_z070.jpg for example won't show up) this is my previous code :
Saving A Filled PDF Form
I am trying to build some functionality where a user can fill out an editable PDF form and send it to my site. I realize I can just have them save and upload/email it, but if I could pull the fields out of the pdf and insert them into a database, I would really prefer that. I saw some ways to do this, but all were expensive commercial solutions which I can't afford. Important points are storage space, ease of use and security. I really want the forms to be as secure as possible when submitted. I also think having to save and upload the pdf might be too difficult/too much work for some users and I want it to go as easily as possible. Another idea I had was to have a link inside the pdf, which would save the form and send the user to the upload page, with the path already entered into the upload box? not sure how to even begin going about that though. I did some searching on the forum and it seems like it's not as common a problem as I thought. Most php/pdf stuff seems to be just creating pdfs dynamically.
How Could I Get The Form Fields Filled From A Database?
One idea I have is to do a redirect, but it doesn't quite work because it ends to an infinite loop cause the page is redirecting to itself: header("Location: " . $_SERVER['PHP_SELF'] . "?field1=something&field2=something else"); That would bee neet. I just would create a string from the contents I receive from the db and just redirect, but as I said, it doesn't work easily. You have to use the apache rewrite, but I didn't quite get it. Another solution is to check if the request is not empty for the particular field.
$_POST Empty, $HTTP_RAW_POST_DATA Filled
We receive a POST message being a multipart/mixed type. The $HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be filled as well, which is empty. We're using php 4.3.3.
Pressing Browser Back Button - Form Filled Data Disappeared
When filling out a web form on a php page that is submitted to a search which lists the results based on the criteria provided (in the form), all works fine and as expected. However, when I press the back button to amend the form all of the search criteria data has gone and I have to fill it all out again if I want to do a similar search which is frustrating. (This does not actually happen in Firefox browser but most of my users will be using IE). How can I prevent this from happening? Previously I made a post about avoiding "Page has expired" and the conclusion I came to for that was not to use a "POST" which did the trick. But now I want to retain the data I input?
Tab Control
Anyone have code for a PHP based tab control for site navigation?
Control Query
I am trying to work on this url query control (people messing around with the query on the address bar) that i can to my script. Baiscly i have 3 choice that are linked from the web page. So you have file.php?choice=1, file.php?choice=2 and file.php?choice=3. I have managed to find a way were if choice="" so if some one messed around and removed the number then it would perform a default action such as "$choice =1". How can i redirect the user if any other option (obviously an incorrect one is used). Example file.php?choice=12 which doesnt exist. Id like it to go to a default like the case above. I had an attempt at it but i didnt work. Does any one know a way around it?
How Can I Control My Printer
I have some problem with printer... How can I control my printer wiht php. I can print my record to invoice preprint form with vb or c++ but with php+mysql I have no idea.
Ad Control Through Script
I would appreciate your advice on the following problem: Situation-Running Website through Drupal CMS connecting to a Mysql database on another server. Noticed a slight time lag in page loading possibly due to database being on another server, running CMS and using shared hosting. Objective-Want to serve two different ads and minimize any extra time lag in page loading or ad serving. Option 1(if possible)-Creating a small php or javascript, something like this: if ip="a.a.a.a" serve ad <a href>Matching</a> if ip is not equal to "a.a.a.a." serve ad <a href>Not Matching</a> Option 2-use some pre-built script like phpadsnew which would require using another database for ad serving. Phpadsnew has some good options for targeting but I am concerned if this may slow the pages and ads especially for users not having high speed internet access. Please provide your opinion and if possible an example of option 1 or should I just go with option 2.
How To Get Rid Of Control M Character
I'm using PHP code to develop a www interface to let users edit text files stored on a Solaris UX server. Users are using Windows based WWW browser access this web site. Once they have selected the file they want to edit, it's presented in a text window (form) so thay can modify the file. The submit button passes the contents of the field to a variable and it is saved to disc. From the WWW interface everything seems OK, but when I look to the file, each line has a "^M" (control-M) at the end. This makes the files bigger and it can cause problem in a near future because these files have to be processed by shell scripts to populate a mySQL DB. Someone has seen that before and what was the solution.
Control Panel
I`m building a small control panel for one of my sites and what I wanted to do was count the total number of MB being used, is it even possible in PHP and if so what would be the best method?
Control Structures
I was just wondering. Im submitting a form, using this code: if ((!empty($_POST['Name']) || !empty($_POST['E-Mail']) || !empty($_POST['Question'])) { code... } What im testing for is if name, email or question is set, do the following. But it is not working, do I have the syntax right?
Control Panel
I am trying to create a control panel so that i can edit the content of a particular page via Internet Explorer without MySQL. I have cerated the login part of the panel and now have no clue to make the edit page script. My questions are: Can this be done and what script will do it? I'd like the script to be primarily HTML/PHP based. Any ideas anyone?
While() Control Structure
I'm trying to insert a unique UserID into my database. To do this I'm using the substring to get the first letter of the first name, then substring to get the first 8 letters of the last name, and then I want to append the concatenated string with 1, or if that is taken, the next hightest available number. But I'm having a heck of a time getting it to work. I had it working at one point for a single name, but it wouldn't deal with duplicate names, I'm pretty mixed up as to why it doesn't work now. The code:
Control Panel
Im trying to create a control panel for my site. I want to create a script for creating pages. So something like... I have a form with 2 fields. Where I want to create the new page and what information i want in the file. Then it creates the file with the information in it. Any ideas how I would do this?
Limit The Entries
How can I limit the number of entries into the database, so after the limit is reached a text like "sorry limit is reached" is displayed, if the limit is not reached a form is displayed.
Duplicate Entries
I am currently using the form below for people to enter data into mysql, at the moment this has no methed of checking to see if the data they enter already exists, can anyone provide help as to how to this? PHP Code:
Approval Of Entries
I'm designing my first PHP and MYSQL application. It is going to be a database of singing groups. I'm going to allow individuals to enter thier groups info into the database. However, I'd like to be able to set up an admin screen that would allow me to approve each entry first before it can be viewed. As well as let me do some other admin functions, such as edit records, delete records. Any suggestions?
File Entries
I want to open a local file and add lines of text to the top of it, before any previous text in the file. How?
Duplicate SQL Entries
I have a buddy system on my site and I have found that duplicate buddies can be added into the database. Here how I have this set up: user 1 want to add user 2 as a buddy. user 1 goes to user 2's page and clicks "add as buddy" A PM goes to user 2 and asks him if he accepts or declines if user 2 clicks accept a php script is run Problem: This script need to detect if that buddy already exists, if so do nothing or overwrite the original. Right now it just adds the entry again. I am using a very simple table: UID BID --------- 1 | 2 This would mean user id 1 has a buddy with a buddy id 2 Here is the non-functional code: $query = mysql_query("UPDATE buddies SET uid='$uid', bid='$bid' WHERE uid='$uid' && bid='$bid'"); print "Buddy Has been overwritten"; //would prefer it not do anything at all if entry exists if ($query == 0) { // No records updated, so add it $query = mysql_query("INSERT INTO buddies (uid, bid) VALUES ('$uid', '$bid')"); print "Buddy Added";}
Add Entries To Array
What I want to achieve: A select list in a form should grow with every data entry. Example: I have a list of towns to choose from for a single entry. If there is a town, not in the list, I would like to have the option to enter one in a text field. Next time I approch the input form, the newly entered town shows up in the select list. What do I have to do, to expand the select list (resp. the table behind)?
PHP And COMM Ports? X10 Control?
Can I use PHP to talk to comm ports and thus control external devices? I have never seen anything along this line of discussion. If anyone can point me towards any information I would be appreciative.
Question On Flow Control
I am having some trouble with the execution of IF statements and I wondered if any one could give me a hand in debugging it please. I thought or I assumed that what ever goes inside the IF statement executes only if the IF condition is true. In my case I have a parameter $index passed as value to a popup page, the popup page contains the IF Statements which is supposed to execute depending on the value received from the $index. It is executing but with errors from the other IF statements. What I don’t understand is why is it executing or entering the IF statements when the condition is not true. Here is the code: (Just for information I’ve even tried replacing it with Switch Statement, it is executing well with no errors but I don’t have the image. Which is the best way to do, should I Use IF or SWITCH?
ImageTTFText/size Control
lets say I have bg white.jpg 1px x 1px Lets say I have a text that says "Kingston or Infineon" What I want to do is to fill the BG, apply the text then make it transparent, I want the image size to be same as text size W and H. Or is there a better way to make the text quality better? bitmap fonts, 8px or 5px sizes... PHP Code:
PHP Switch Control Structure
I’m testing this control structure to serve content based on a variable but the square brackets are a problem… any suggestions? <? switch ([VAR_NAME]) { case 'FOO': echo 'wooo' break; default: echo 'whoo' } ?>
Printf() With Control Character
I'm trying to write a rotational symbol in a CLI process, to report activity to the user console, using printf( "%s", symbol ); but I see the control character () is been printed out instead of backspacing. Is there any work around ?
Control Structure (Basic)
I'm basically creating a chart system, where new entries into the chart are highlighted via a change in the background colour of their HTML table row. The problem I have is that the following code generates a "Parse Error", please can someone tell me where I'm going wrong? --------------------------------- $tablecolor = "000000" if ($lastweek = "NE") let $tablecolor = "0000ff"; --------------------------------- The error comes in the "if....." statement line.
Date Picker Control
Want some help in embedding Date picker control in my php script. I have a box where users can enter date, but I want to modify it so that user can click on the calender displayed next to the box and the date selected will be displayed in the box. Any clues how this can be achieved in PHP.
Coding Standards Without Control?
A recent poll asked if programming standards are used by development organisations... and if they are controlled. None: 20% Yes, but without control: 49% Yes, with control: 31% Participants: 369 A majority of the participating organisations have coding standards... and a majority does not control them ;o) What is the situation at your location?
Creating Log On/Session Control
i am trying to do a simple log on for a project i've been working on but i'm having trouble with a line of code. One one of r the last lines of the PHP i have an error. The line is down the bottom of the first code (//$db_conn->close() If i comment it out and put in the correct details i am still not getting the correct respnce. Instead i'm getting the else statement down near the bottom of the second part of code, else { // they have not tried to log in yet or have logged out echo 'You are not logged in.<br />' } PHP Code:
Control On Upload Function
I allowed user to post a project for bidding and allowed user to upload file. If user didn't upload file, shouldn't display upload failure. Means, user can post a project without upload any file. How do I control the upload function here? PHP Code:
Process Control Problem
I need to process some computation but i do not want the user wait the end of the computation but instead i would send the user a "wait refreshing page". When the computation is finished i would replace the refreshing page with the new page containing the results. So i need 2 processes one that would make the waiting page and one that would do computation and make the results page. I read in the php manual that handling processes within a web server environment could raise problems. Is there a simple and a clear manner to solve this problem?
Can I Control The Width Of Tk_messageBox?
I have below tk_messagecode: tk_messageBox -icon info -type ok -title "About Test Item " -parent $w -message "preddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddd_tes t" When I run it it always was displayed in multiple lines. It seems the width of the message box cannot be controled. Can I control it to use my prefer width and don't get carriage return automatically?
Which Version Control System?
we are thinking of using a version control system at work. I was wondering what are some of the issues we should take into consideration when deciding upon which one to use? and which one/s you would recommend?
Web Hosting Control Panel?
How do web hosts make the control panel for web hosting? I want to do this for my company, make myself rather then use. But are there any examples of detailed ones. I know some of if, like adding/editing the SQL DB's etc...but what about editing the email users and Web Properties of the hosting in Apache/IIS 5 etc. are there any freeware versions i can download and analyse?
How Control Struct Evaluate
$PHONETIC is an array of strings. How can !$PHONETIC['d'], in the case below, evalutae to true. It is a string not a boolean. It would make more sense if it evalutated to null. <?php $PHONETIC = array('a' => 'alpha', 'b' => 'bravo', 'c' => 'charlie'); if(!$PHONETIC['d']): echo 'true' else: echo 'false' endif ?>
Help With PHP Process Control Functions
I have written a script that basically sends an email (using sockets). I want this script to be able to run multiple copies of itself so that it doesn't have to wait for one mail sending to finish before starting on the next. I understand that I need to use the PHP pcntl_ family of functions to control the processes, but am not sure where to start. There aren't many helpful articles on the internet about this topic! Any example code or help would be greatly appreciated.
Headers Cache Control
I have finished redeveloping a site, reuploaded it and the client is complaining of not being able to see the new site yet. If they Ctrl + F5 they would see it, but are concerned that if some of their clients dont know its a new site, how shall they see it? I have put the following at the top of the index header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache"); header("Pragma: no-cache"); Will that override the browser settings?
Version Control System
I am not sure this is in the right section so feel free to move it if you need to. I am looking for a web-based version control system script. Basically, I need to be able to have users check files out so that no one can download a certain file until the person who checked it out submits a new version of it or if the admin sets it as lost. I cannot use SourceForge because my project is not open source. Also, I cannot use Subversion or similar system because I do not want to give anyone SSH/Telnet access. There are companies that offer this service, but cost way too much money for something simple like I need. Does anyone know where I can find such a script? I don't care if it is PHP, Python, CGI, etc as long as it works the way I need it to on my own server.
Passing Control Onto Another Form
I am working with a payment gateway, which sends its response with a specific php page. Lets say response.php, with parameter ?val=data. ie http://abc.com/response.php?val=data. On this php page, I want to perform some processing, but ultimately dont want to display any html form with this page. I need some way to perform my processing on this php page, then immediately redirect to another php to display the next form, with the results. Can anyone advise on how this is achieved? So for example, I want it to then invoke display.php?mode=1&conf=1, which has the formal display with all the results. All this with NO user input.
Deleting Entries From Mysql
I have business listings that I have pulled from a database(MySQL) and printed to the page, in an admin page, for review. I'm trying to write a script to add and one to delete the listing. I get an SQL error, 'check the manual for blah blah near " on line 1' Here is the 'delete script:
Displaying Entries In Rows Instead Of On Top Of Each Other
I'm altering a voting script for our dog rescue so that we can hold an online photo contest. I'm very new to php & mysql..kinda just muddling my way about with this. I want to display the entries in a row across about 4 or 5 photos and then keep it going that way, but I haven't a clue as to how to do this....
|