Having A Webpage Modify Another
I am completely new at webpage building when it comes to advanced controls. I know how to put textboxes on a page with dreamweaver. What i want to do is have page1 with 2 textboxes. Then I want it to modify Page2.html page. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html web page to web page. 1. URL; 2. Cookie; 3. Form; 4. Session; All the examples I found are move distinguished variables from page to page, such as "?weight=20&name='apple'". I need users choose from the first web page (the arrays will be generated), then use it in second and third html web pages. How do I transfer them (arrays) and which way is the best? For example, if I have two arrays, $fruit[] = array("apple", "pear", "orange"); and associative array $myCats["Me"]="Merry"; $myCats["Pi"]="Pippin"; $myCats["He"]="Hergie";
View Replies !
How To Modify CSS With PHP?
Is it possible to modify the background-image for a certain web page with PHP? I'd like to but a few buttons on the top of a page so readers can select from 2 or 3 different background images (or colors) to make the page easier to read. Can I do this kind of Dynamic HTML without using JavaScript? How do I modify my CSS? Or do I just point the page to a different stylesheet just for the background-image directive?
View Replies !
How Do I Modify Php.ini?
I have just purchased a new server and am using Plesk. I need to enable magic_quotes_gpc but I'm not sure how to get to the php.ini file? Would I find it from within my Plesk control panel?
View Replies !
Can't Modify Php.ini
I want to modify the register_globals value in my php.ini.. but find prob... I have two php.ini (could you explain this too ), in windows folder (c and in php folder. I don't know which one to modify..? recently.. I tried to modify both of them (tested it one by one offcourse).I looked for register_globals and changed the value to 'off' and save it. Then i ran php_info(); but the value didn't change there... still on.
View Replies !
Modify
I need to make a change to the following change from this hotels/?page=2 to hotels/1.html This is more than i have learned yet <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)detailed/listing([0-9]+).html $1detailed/listing.php?link_id=$2 RewriteRule search_(.*).html search.php?$1 RewriteRule ^(.*)page([0-9]*).html $1index.php?page=$2 RewriteRule ^(.*)index.html $1index.php </IfModule>
View Replies !
Modify Array
What I want is that if that array has less than 5 elements, then it should add the number of elements required to make it 5, and the value of those elements should be 0.
View Replies !
How To Modify A Quote
I quoted a price for a client to do a php database project . After spending a few hours on it I realize I underestimated how much time it would take. I would like to revise my quote to double my original estimate. Is this ok to do or am I held fimly to my original quote?
View Replies !
Modify Form
I have a web page with the contents of a database dumped onto it with a link next to each of the rows. I want the link to modify the data. Each link is unique to that rows id number. Now, the problem is when the link is clicked, my information doesnt send over to the modify form link. Alright, my theory on it all...I am almost certain that the the problem is in the first few lines of code. if (isset($_POST['submit'])) How do I change that to grab the rows id number from the URL.
View Replies !
Modify $_POST
Ive seen lots of recommendations to not try to do what Im trying to do but let me put it this way and hopefully someone can tell if this is a good idea or not (or an alternative). What Im trying to do is this. I have a series of links that when clicked will navigate to a common page passing in a value encoded in the link. For reasons not worth going into I cant use a querystring. Code:
View Replies !
Modify Variables
I have a script and it contains a number of variables, say for eg. $apple = 3; $triangle = 7; $london = 12; is there a function in php that can allow me to physically change the value eg, on a new php script. I have a form or something that will allow me to change $apple to say 456 and then when I open the variable php the value has been changed in the script its self, so the new script reads. $apple = 456; $triangle = 7; $london = 12;
View Replies !
How Do I Modify This Ff Database?!?
I have a flat-file database, which contains a record of titles for pictures. Its lines are like: 1|This is a caption for a picture| 2|This is another caption for a picture| 3|This is yet another caption for a picture| ...and so-on. I'm trying to write some PHP code which will allow a user to change those caption titles in the database. So, I'm trying a form, which takes the number of the caption to be changed, and the new text for the caption, like this: Code:
View Replies !
Modify This Php Guestbook
I need to modify this php guestbook and I don't know how.I need php only for this matter and nothing else. The guestbook as it is works fine. I don't know php but I am pretty good at HTML.I have searched around the net and found that I can make a HTML template and integrate it , but I didn't found how.
View Replies !
Trying To Modify A Field
I have a field (item) in a table (todo) and I would like to click on a link (edit.php?id=1) that goes to a page with a form and the field has that information filled into the text box. Clickong the submit button sends the changed field to update.php. I have tried several times to get this done and search here also.
View Replies !
Cannot Modify Header
I am trying to export a query from mysql to an excel file using a code snippet I found in Zend, the code seems to work except I get : Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwofficetest.php:3) in C:wampwwwofficetest.php on line 125 and then it just ended printing the table in ugly plain text on the page. I read in another thread that if you had changed the database details in the code you would get that message, which I did because they were initially wrong. If thats the case, what can be done to fix that. If not can someone lead me in the right direction: Code:
View Replies !
Modify My Query
I'm using the current query:- $query2=("INSERT INTO query_results2 (Location1, Location2, Average_Income) VALUES ('$drop_down_box_1', '$drop_down_box_2', '$area_1')"); Now I'd like to insert the values of both $drop_down_box_1 and $drop_down_box_2 into Location1 with a comma between them(the values of both $drop_down_box_1 and $drop_down_box_2).
View Replies !
Can MySQL Modify
I've seen a web program which uses .mdu files. What exactly are these and how do they work as I can't seem to find much information on the net.
View Replies !
Modify Mktime
I'd like to echo the date 365 days from today. For example, if today's date is 2006-03-25, I'd like to echo 2007-03-25. I'm using the mktime function which gives me what I want. display the date as YYYY-MM-DD. My code is below. Could you please show me how to modify this code so that it displays the date as YYYY-MM-DD? PHP Code: $nextyear = date('j-m-y',mktime(0, 0, 0, date("m"), date("d")+365, date("Y"))); echo $nextyear;
View Replies !
Modify An Input Value
I have a input box which requests a URL from the user, this url gets stored in the db and later gets called by a page which generates a link from the value. A problem might be if the user types in www.website.com instead of website.com as the code i will be using will have the www part already on the php page.
View Replies !
Modify This Reg Ex For Html
I have the function thanks to the members here at CF that will read the contents of a div but the function wont return anything if there is any html in it I know nothing about reg ex so i would really appreciate it if someone could modify it so that it would return the content regardless of what is inside the div even if there is another div inside the div i am reading. The function is below and some test content is below that. Code:
View Replies !
Modify HTTP_REFERER
How do I modify the HTTP_REFERER? For some reason, I want to test if I can disable the HTTP_REFERER or even modify it. I am using PHP 5.2 and Apache 2.0.59
View Replies !
Doubts In Php Modify Prgrame
In most modify program, It used html + javascript and php to write data into table. I do not know understand how php know the row and column of field name in html and then we can change the value and later click submit. The position of the 'wrong data' being displayed and why it knows the position.
View Replies !
Modify Data In A Database?
I am using PHP to add data to a MySQL database in an HTML form. Does anyone have any code to display all the records and click on one to modify it and update the data?
View Replies !
Can .htaccess Be Modify By A Php Program..
protection by .htaccess authenication is better than a html authenication. normally, I do at the current directory : ./htpasswd .htpasswd abc password password. can a php program can integrate some trick to do a unix command. and also a entry in .htaccess of the protected directory I have done a search and check threads and I have not been able to find to "stmt" to say modify or add or delete a entry in .htaccess file.
View Replies !
Modify String In One Position Only
Is it possible to modify a string in one place using an indexing operator and an assignment statement? E.g.: $s = "1234567890"; $s[5] = "d"; // $s is now "12345d7890" According to _PHP Bible_ (2nd ed., p.175), this kind of syntax can work , but is undocumented and, moreover, appears to be discouraged because "almost all PHP string manipulation functions return modified copies of their string arguments rather than making direct changes, which seems to indicate that this is the style that the PHP designers prefer." I did a google search (both www and USENET) and found nothing on this.
View Replies !
Modify The Picture Resolution
I tried to reduce the resolution of an image from 300dpi to 72dpi but I didn't succeed ... I can use the imagecopyresampled() function to modify the width and height of my image but I can't modify the resolution.
View Replies !
Select A Row To Delete/modify
Suppose to have read and displayed (using PHP) a group of row of a DB table on a dinamyc table on a HTML/PHP page. The number of row displayed could be from 1 to n. Each row contains informations and also a cell with a unique ID of the element. I would like to show at the beginning of each line of the table a couple of cells containing two different icons (one for delete and one for modify) so the user could click on it to delete/modify the corresponding row on the DB table. In other word I need to delete/modify the Dbtable row which have the ID of the line where the icon was clicked. This means also that when a icon is clicked I must jump to a PHP routine passing it the ID that appears on the same line of the icon clicked. I have seen a similar method of delete/modify on the phpAdmin program, but I was unable to understand how it work because of the complexity of that routines. To achieve my need I can use, if necessary, also Javascript statements.
View Replies !
Modify String With Variables
i've built a multi-langual site. Languages are defined by a variable in the url -> 'l=en'. There can be more variables in the url: mydomain.com/site.php?l=en&item=5&name=foo, but l=en can also be the only variable. The requested url is saved in a session variable for various reasons. Now i wonder, if someone enters a language that doesn't match any language i provided, i want them to be redirected to a page which tells them the language doesn't exist. The links aren't allowed to lose any possible variables, i tried to use preg_replace by searching 'l=' and '&', but since i'm not sure there are multiple variables, there isn't always a '&' in the URL. Any clues?
View Replies !
Modify/add Files As Another User
I need to allow users to login then edit their .forward files or other user preference files. How can I create a script that edits files as a particular linux user? Or do you have to run the script as root then chown the files?
View Replies !
.htaccess :: Modify The Include_path In Php.ini
In my virtual host account, I would like to modify the include_path in php.ini to add more path info. So, in .htaccess I should do this : phpvalue include_dir ".:/home/username/path1:/home/username/path2" For some reasons it didn't see my path. It will gives me the error: Failed opening 'formta.php' for inclusion (include_path='.:/usr/local/lib/php') Obviously, it didn't see my info in .htaccess I did put .htaccess file in folder that contains formta.php and all other php files.
View Replies !
How To Modify The Request-Line ?
Is it possible to modify the Request-Line of an HTTP response ? I'd like to remove the parameters from a GET url. More precisely, I wish I could replace : [From Req: GET /myuri?key1=val1 HTTP/1.1] with : [From Req: GET /myuri HTTP/1.1] The "Header" function doesn't seem to allow this.
View Replies !
Modify Chars In Files
I've an XML file where I've "'" char. I want to modify in all file the "&apos" by "'". it's there any way to do it before parsing the XML file ?
View Replies !
Trying To Modify A Text File.
What I need to do is to look at each line in the text file, find the userid that an administrator inputs into a form, and delete that line so that a new line can be appended with updated info. Or, if anyone knows of an easier way to modify info on a certain line in a text file, I'm all ears.
View Replies !
Cannot Modify Header Information
I have this annoying error. It doesn't really impact the result, but this error annoys me. Cannot modify header information - headers already sent by (output started at /home/mywebcom/HTML/xmlgallery/images/input_product.php:34) in /home/mywebcom/HTML/xmlgallery/images/input_product.php on line 9 Code:
View Replies !
Cannot Modify Header Information ...
I am new to php. http://linux.thorncom.net is my first attempt at creating pages using php. I know a great deal about html, but I want to do more than html can do. I am getting the following message when I process mu contact form. Warning: Cannot modify header information - headers already sent by (output started at /home/linux/public_html/header-file.inc:6) in /home/linux/public_html/contact.php on line 60 I do not know why this is happening. It was working fine one day and the next it started giving me this error.....
View Replies !
Php Script To Modify Database
I'm looking for a ready made php script that allows me to make mysql database modification. abviously I will make some changes to fit my needs. Any suggestions or links where I could download such a script.
View Replies !
Modify Array Item
I'm building a shopping cart and need to add the function so if an item is selected twice, the 'quantity' counter increments. I can't get the syntax right for modifying the array value. I have this: foreach ($_SESSION['basket'] as $key => $row) { if ( $row['gnsz']==$gnsz) { $newqty=$row['qty'] ; $newqty++; $row['qty']= $newqty; } } it picks up the first qty value but I can't seem to modify it in the array. I'm making a dumb mistake somewhere .
View Replies !
Modify Headers Information
This script below is designed to write as a string a value taken from a database over an image. However the following message appears. Cannot modify header information - headers already sent. How can I get this script to work properly. $dte = gmdate('Y-m-d'); mysql_connect($host, $user, $pass) or die(mysql_error()); mysql_select_db("info") or die(mysql_error()); $result2 = mysql_query("SELECT * FROM schedule WHERE ('$dte' < EndDate) AND ('$dte' > StartDate)"); $row = mysql_fetch_array($result2); $CurrentLoc = $row['Location']; $im = imagecreatefromgif('images/title1024_2_08.gif'); $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 211, 211, 211); imagestring($im, 3, 156, 5, $CurrentLoc, $textcolor); header("Content-type: image/png"); $img = imagepng($im);
View Replies !
Modify Existing Code
I have found many helpfull answers but I have a few codes to modify on my site and is taking me too long to do myself for examlple I need a photo resizer built in to my photo upload page. also I need a couple other small issues fixed related to php and mysql. I know these problems are not very difficult for a programmer but for me is way too time consuming. where I could pay for these fixes? and how do I know if I can trust someone?
View Replies !
Preg_replace - Modify A String
i never used preg_replace before and am now trying to modify a string. i tryed for some hours now, but i cant get it to work. i'm looking at a date information (which comes as a string!) and i would like to modify it to look nice in "german" format. the original string looks like this: 2/27/05 3:00 PM Local Time and i would like that one to be replaced by 27.2.05, 15:00 Uhr so a little preg_replacing needs to be done i guess and something smart to convert the am/pm-time-format to 24h format.
View Replies !
Modify PHP Files With Fwrite
What I want to do is setup a script that will update the change log in the header of my *.php files when prompted to from a frontend. the problem I'm running into is that all my php files are chmod 654 and the grp/owner is nobody, disallowing fopen access from within my scripts. This is how they get created. If I chmod to allow the world to write, the update script can successfully edit the target file. I'm wondering if this is a security risk, or will open up any holes for possible exploitation? Or is there another way to go about this? I was thinking I might be able to use shell_exec to temporiarily mod the file so apache can edit it, then mod it back to it's original setting. I'm not sure if that's possible though, I'm not even sure if my fears are justified or if I'm just being overly paranoid.
View Replies !
Modify Header Information
I guess this is pretty basic, but having looked around for help I still can't figure this out on my own. <?php require("config.php"); if(isset($_GET['id']) == TRUE) { if(is_numeric($id) == FALSE) { $error = 1; } if($error == 1) { header("location: " . $config_basedir . "/viewcat.php"); } else { $validcat = $_GET['id']; } } ........
View Replies !
Get Webpage Url
how would I call a web page url I'm interested in the current active page Example the URL when I type this post is http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 I want to assign it to a variable ie $url=http://www.phpfreaks.com/forums/index.php?action=post;board=1.0
View Replies !
How To Modify 'configuration Command' After Php Is Installed ?
My problem is the PHP already installed by previous sysadministrator. And now I'm as regular user needs to add PostgreSQL to be compatible with PHP. The configuration command as mentioned in the phpinfo is: ./configure' '--with-apache=../apache_1.3.12' '--enable-track-vars' The PHP doesn't support PostgreSQL yet. Is there any chance for me to add the configuration command parameter '--with-pgsql' after the PHP is installed ?
View Replies !
Warning: Cannot Modify Header Information
I have a strange problem. When I execute this page on my local server (my machine) the redirect works just find. When I upload it to my remote server and try it I receive the following error message. Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/fauna/docs/www/Register/bd_register.php:6) in /var/www/virtual/fauna/docs/www/Register/bd_register.php on line 92. PHP Code:
View Replies !
Simple Blog Software To Modify
I am looking for a simple php blog to modify. I been have looking around at different open source blogs like Wordpress but that are too complicated for my needs. Basically I just want posts,comments,users and tags. If supported multiple blogs that would great but I can add that. Really the simplier the better.
View Replies !
|