Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Edit Profile


I would like the user to edit their own profile. But how can I retrieve the data in the form to perform update, instead of display as the code below? PHP Code:




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Edit Profile Form
on my site the users can goto the control panel and edit there profile (age,location etc) from input boxes and drop down boxes, but if i just for the heck of it press the "update profile" button WITHOUT putting in the correct data it is all lost (no input in the input boxes defaults to zero in mysql)

what would be the best way to only update mysql when the user input the data, i have attatched a screencap of some of the fields Code:

Displaying Members Edit Profile Page
I have an edit profile page for my memebership system which works fine until i call a function to make sure that the user is logged in before displaying the content with their details.

When I log in and go onto the edit profile page, all the form fields are there but as soon as I click submit the page goes blank.  I don't have this problem if I don't use the function but how else am i supposed to only display the page to registered and logged in users? Code:

Creating Profile
would i get them to make it the 1st time they sign in assigning them a name for there profile there or use there login name to creat the profile? if so how can i make it so the users information can be set up in there own folder or will this be messy stuff and is there a better way of doing it?

AIM Profile Tracking Problem
I'm trying to make a script that'll track the AIM users who viewed your profile but when there's a space in the users name everything after the space is gone in the url, so i cannot properly track those with spaces in there names.

Keep in mind the profile isn't being viewed in IE or Netscape, it's being viewed in the AIM profile window that allows only simple html. When there's spaces in a url in IE, it replaces them with a + or %20, but the AIM profile window doesn't do this and everything after the space is gone.

Member Profile Page
I want to be able to add certain a few things into a Member Profile page that I currently have now.  If I can get the help for ONLY one of the items I will be able to do the others with the same info pretty much.

I currently run a Nascar Racing 2003 Season League and am looking for a few things.

Right now I have a Roster/Member page, when someone clicks on a Members name it pulls a page up with their information.  What I want to be able to do is display an image for that given person.  I have a page in the Admin Section to where I can manage their stats and Stuff.  So I want to be able to add an image from that page into the database for that members name and then display that image when a given members name has been selected in their Profile.

Viewing Other Members's Profile In Php ?
  if($profile['member_id']==$_SESSION['user_id'])
  {
    //edit and view the page
 }
 else
 {
   //view the page
  }

the above code lets other members view another member's page but not being able to edit it...

Editing A Users Profile
on my site the users can edit they're profile, basically a page with drop down boxes, they can change country etc, what i was wanting to do is when they goto the edit page to edit say they're country for example , the country they signed up with is pre-selected (if someone signed up with Scotland) Scotland is automatically shown first. Code:

Displaying Last Visitor On Profile Page
I'm in the process of malking a php/mysql website where each registered member has a profile page. This is what I'm trying to achieve:

-When some member visits someone else, I want that someone to see the recent visitor's username on his/her profile page. Can someone give me some hints on how this could be done?

PHP System To Allow User-generated HTML Profile Pages...
Has anyone created or modified an existing codebase to allow users the option to create personal pages as part of their login profile? I'd love to offers users the potential to upload single HTML pages ++ images for their profile... I suppose this would require:

1. A form to accept the HTML page + images and other content
2. A php script to parse the HTML and remove any headers, and to add site headers
3. The same script to parse out any malicious php or java code
4. ... and to store everything in a database.

Has anyone done this, or have suggestions about how to do it? Are there any codebases out there I should check out?

Select From Radio Button + Enter Username = Open User Profile
I have 4 radio buttons. each button to determine which page to go to. But
before page open user enters username in a text box. So when submitted, Page
opens relevant to that user displaying selected page.

Page 1: <radio button> >>>>>>>>>> this page to go to page1.php (this is a
table of user records 1)
Page 2: <radio button> >>>>>>>>>> this page to go to page2.php (this is a
table of user records 2)
Page 3 :<radio button> >>>>>>>>>> this page to go to page3.php (this is a
table of user records) 3
Page 4: <radio button> >>>>>>>>>> this page to go to page4.php (this is a
table of user records 4)

Enter Username: [text box] >>>>>>>> any user with their username

[submit]

Result should be :

If User FAB5 selects radio button 1 >>>>>>>>>. to display FAB5's page1.php

EDIT CSS
i need a script that will allow my to edit the css file through a website. Like without going through the cPanle I could just click a link throught the site and it will allow me to edit it.

PHP Edit Itself?
Can a PHP script edit itself? And if so would it be faster to store/retrieve information this way instead of using a database? Or would it be slower?

Edit/replace?
How would I edit or replace a field of a row in my database?

Edit MySQL Using PHP
I know that I need to include a textbox and everything, but dont know how. In my database I would like to be able to edit it from my website that has a textbox and a button that allows it to change a field in the database and replace it with the text in the box.

Trying To Edit A Txt File
Hi I am trying to edit a text file... the format of which is like

#####abc.conf
poll somethin
proto pop3
via 127.9.02.1
user "me@me.com"
pass "dell"
is me.nutcase
preconnect "abc abc abc abc"
##
poll ak #
proto pop3
via 11.11.22.33
user "ak@bk.com"
pass "eatme"
is nutter
fetchall
preconnect "abs -e -f -f /ss/ss/ "
##

The way i am tryin to edit this file is ....

<?php
$file = "/som/thing/abc.conf"
$dele = "poll ak";
$open = fopen($file, "r+w");
$read = fread($open, filesize($file));
$sep1 = explode($dele, $read);
$sep2 = explode('##', $sep1[1]);

$read = str_replace(array($dele, $sep2[0]), array("", "
"), $read);
fseek($open, 0);
fwrite($open, $read);
fclose($open);

The result of what happens is it delete the tag from poll ak till the ##

but also adds some text at file end like ....

Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2Resource id #2Resource id #2Resource id
#2Resource id #2Resource id #2defaults
via 11.11.22.33
user "ak@bk.com"
pass "eatme"
is nutter
fetchall
preconnect "abs -e -f -f /ss/ss/ "

Read And Edit Xml With PHP
I'm trying to write some php that will read in some xml and then allow me to modify the tag and write back out to xml.

In the following example, I want to read in 'text_for_paragraph_1',
then allow it to be viewed, edited, and saved back to the xml... I
have absolutely no clue even where to start...

Php Edit Xml File
I have an xml file that looks roughly like this:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<videos>
<video url="new.flv" desc="Guitar Solo" />
</videos>

what i want to be able to do is add more entries like "<video url="new.flv" desc="Guitar Solo" />". How can I get it to add the entry into the right place, so it doesnt show up after the </videos>?

Video Edit
It is possible to upload your own video and then mix it the way you want. Is there available a php library for modifying flv videos to mix them and add effects just like in eyespot. I know for flvtool 2 but i am not sure it will do the thing and i couldnt find any documentation for it.

Allow To Edit Within X Hours
I have data that is inserted into a database, one of the fields is named 'time_stamp' and is a "datetime; 0000-00-00 00:00:00" type.

I was wondering how one could make an if statement that will show code (code is just the editing portion of the page) if the 'time_stamp' is less than the 'time_stamp' + 72 hours. Other wise, don't show the code and inform them that they can no longer edit.

Edit Regarding Check Box?
I am trying to write a little script that when the user chooses to edit there ad on the site, it will display a list of there images as thumbnails. They then check a box for the images they want to keep. Is this the correct syntax? Code:

Edit Php To Html
I have a website on a cd and is in php format.How do i change from php to html?Or what program should i use so i can publish the website.

Script To Edit Mp3 ID3v2 Tag
I need a script for updating the Title of a mp3 song (ID3v2 tag). I am
sending the data via POST and trying to write to 'Title'.

Edit TXT File If Script Is Not There.
I want this script to instead of saying you're a guest, into deleting a line in a TXT file.

Is this possible?

Below is the script I'm using.

if(stripos(file_get_contents('http://www.othersite.com/page.html'), '<script')!== false)
echo('You're an affiliate.');
else
echo('You're a guest.')

also is it possible to "search" for a tag or something in the text code and delete it?

Edit All_url_fopen In Runtime
Currently in PHP, you cannot use ini_set() to edit allow_url_fopen
during runtime. Has anyone found a workaround or has any other ideas so
that I can use fopen() and file_get_contents() on a file hosted
somewhere else?

Script To Edit Players
i have a (mysql) table called "Players" where I store First name Last name and Category. For adding players I use a dynamiclly create a dropdown menu from the table Category. My question is: In the edit player page I want the selected option in the menu to be selected <option selected value="">?</option> For the value I put the value stored in the Players table, but how do I also get the category name where I put the "?", Do I have to do a new query or can I add something to the existing query? PLEASE HELP :-) I`ve included a part of the script below. Code:

Dir Read / Write / Edit
I have some files in web server in a dir (e.g. /download/*.*) I don’t want any kind of database support.

Objectives:

- I want to upload files in that dir.
- I want to see all files in that dir.
- I want to delete/Edit the files.
- I want to download the files.
- When I click download the files, In case of Image files (or, any file types that the Brower can open) it open automatically open in to that window (But I want it to download only)..

How To Edit Code For Register_globals Off
I have read the manual and several posts for this issue, but can't get it to work. How would this code need to be edited to run with register_globals off. PHP Code:

How Do I Edit The Phpini() File
I need to specify the session.save_path.

Program To Edit Php Online
im looknig for an easy way to edit the script so i dont have to ftp download and upload files manually (maybe a program that when you click open on it it downlods the file via ftp then when oyu save it it uploads it again)

and i need to be able to search throguh several files at once for phrases. for instance ill see a function being called in one file but the function is defined in a different file and i have to hunt for it very annoying. id like to jsut say "search all these files for this sting of text" (something i can do with context if anyones used it before just these files are located on a remote machnie).

Edit XML Like A DB Woth Web Form?
I have a site that takes info from a form and adds it as a record to an
XML file (RSS format), using the XML as a light-weight db.
Now I need to build a web-based management app for the data in the XML
file, where the user can grab a record from the XML file, edit it, and
save the changes back to the XML file....

Edit Apache File On The Fly
I would like to know how to read my apache conf file and for each domain put them into form fields. also would it be easier to keep each virtual hosts in their own files and is this possible? PHP Code:

Updating An Edit Field
I'm trying to alter the value of an edit field which was previously populated from my db.
Code:

Remote File Edit
i want to edit my index.php by www

i print file in 'textarea':

<textarea cols="95%" rows="20" name="text">
<?php
readfile("../index.php");
?>
</textarea>

how can i save contents after editing it (editing in this textarea)?

Edit An Existing Pdf Document
I am having a pdf link on my website
when the user clicks on the link, download window occurs .

But i am not able to edit the pdf.
When the user clicks the pdf it should be downloded with the username
of current user
on each page .
An one more thing i also want to search a specific word from the same
pdf and replace it with user's
additional info.

Done enough googling and completed half of the thing.
But looking for some good url's and help from you guys for completing
it.

Edit Lines In Txt File
i am trying to write data that i have stored in a session back
to a member.txt, but i am unable to work out why it wont write. It
displays the data i have stored in the session ok, but it wont do the
next step! I have used a similiar script in another part of my web
page which works, but this one won't. From my understanding it has
something to do with if statement if($data[0] == $user_id), so i might
be trying to compare the previouis data to the current data stored in
the txt file properly....

Edit The Entries In The Database
I have a script that allows you to edit the entries in the database. All is working fine except when you pull up an entry for editing the subject field only prints out the first word of the subject??? I know the entire subject line is in the database, but only this part of the script won't print it out. All the other fields work fine. Code:

Edit/update - All In One PHP Pages?
Let me explain how I'd generally do things. For a page where the user
edits data, I'd generally call it something like editfred.php (for
example), the page which updates the data would be called
updatefred.php and equally the page which processes a delete would be
deletefred.php. I like splitting the pages up this way, it feels less
cluttered and more organised than throwing all the functionality in one
fred.php.

Here's the problem though. If the user enters erroneous data into the
form editfred.php which is subsequently processed by updatefred.php
then that error needs to be reported to the user. Traditionally what
I've done is have updatefred.php list any errors it finds and then
provide a link to go back or ask the user to hit the back button on
their browser. This is no longer viable, instead I'd like to
automatically throw them back to editfred.php with all their data
already filled in and the fields causing errors to be highlighted. My
question is: what's the best way to do this?

There springs to mind several ways:

1) combine editfred.php and updatefred.php. Again, I'm not keen on this
but it does seem the most logical and programatically easiest.

2) use sessions to store the data, editfred.php would then check
for data in the session each time it's loaded. Is there a maximum data
size for use with session objects?

3) write code to wrap and store the data in a cookie which could then
be read by editfred.php, similar to sessions I believe. However max
cookie size is 4Kb which wouldn't be enough on some forms.

4) store the data from editfred.php in a table in the database which
again editfred.php would check for when loaded. overhead of db access
each time however.

Edit Mysql Record
I want to use a userform on a webpage so members can edit their data.

Displaying the data on the form isn't the problem.
But when members change their data how do i save then new data in their
record. I dont want a new record.

Edit Text In A Txt File
here is the php code!

i am trying to use to 'edit' hyperlink to edit txt in member.txt.
Problem is that it reads the values ok into an array, however when i
attempt and update new values into the file, i get no results. Does
anybody know where i am going wrong????

<? session_start();
// Set updated content for user

if(!isset($_POST[Submit]))
{
// read content from file and place into array, this is used to put
initial content into form
$fc=file("../username/member.txt");
$userid_no = $_GET['record_id'];
$line = split("|",$fc[$userid_no]);
$user_id = $line[0];
$password = $line[1];
$firstname = $line[2];
$lastname = $line[3];
$email = $line[4];

}
else
{
if(isset($_GET['record_id']))
{
// build record into string from post values
$update = $_POST['user_id'];
$update .= "|";
$update .= $_POST['password'];
$update .= "|";
$update .= $_POST['lastname'];
$update .= "|";
$update .= $_POST['firstname'];
$update .= "|";
$update .= $_POST['email'];
$update .= "|";
$update .= "";
$update .= "|";
$update .= "2";

Graphically Edit A Page?
I am a Java programmer who sometimes dabbles in simple PHP stuff, and
had a question that's way over my head, for you PHP experts.

I would like to know how to dynamically edit a cuurently static HTML
page which contains a map of a stands at a convention center. The
static version of the page can be found here:

I would like to be able to *visually* edit this page -- create, modify
(re-shape and move boxes, assign data, etc.), and delete boxes on the
page, and then click on a "Save" button to save the changes in my
database.

I am a feeling what I am asking for is something much more suited to
Flash but I need to do it in PHP. Does anyone know of a graphic editor
out there, something that allows drag-and-drop and stretching of HTML
(DHTML) elements?

Edit XML Using Html Form
I have simple XML:

<myXML>
   <t1>My main Title</t1>
   <t2>secondary title</t2>
   <content>All kinds of good content</content>
</myXML>

All I want to do is make a simple CMS that can update the content inside the 3 inner nodes. I don't need to change, add or delete nodes. I thought of echo-ing the content to 3 html form inputs and fwriting to a new XML file to overwrite the old one using post method. Does this sound correct in theory? Does anyone know of an existing example of this method?

Easy Webpage Edit
I'm completely new to PHP, and have just one thing that needs to be done.  I do plan on eventually learning PHP, but for now, I need this.

I'm a Visual Basic programmer, and am making a program that will enter data into a website.  I do own the website, however I want the site to update (add the entered data to the bottom of the page) the page as soon as it is submitted.

Basically, I need a script that will add a string of text (entered in an on page textbox) to the bottom of the site.

With this, I plan on duplicating the post data in my program so that I can do this automatically to my website.

Dispaly And Edit Simultaneously
I have a table which includes names and addresses. I need to let the visitors to my web page to be able to see their own address as well as be able to edit it at the same time. In other words be able to just type over the old address and click save.

Can You Edit Php Code In A Web Builder?
I have a flash portal and I need to redesign the layout so I can add pics, links, background ect... but when I insert the php code into a web builder like dreamweaver or front page. It doesn’t show the page in the design aria as is dose on the web page. Here is the portal.php code so you may try. Code:

Edit Form Validation
i have an edit form which as a validation code to check if the new parent category/subcategory is not yet existing in the database. apparently only my parent validation code is working, but my validation code for the subcategory is not working. Code:

Edit Text File
I am trying to find a specific line, which starts with a unique word, then delete that line in the .txt file then rewrite that line. Code:

Load SQL Variable & Edit Right Away...
I am making a simple test database that's hosted on my hosting account and I've got one php page that pulls out all the values from a DB table and sorts them into input fields that are sorted inside a table. Now the reason I insert those values into a input field is because I want to make another form function where those loaded values can be changed and saved right away. My code for right now is this : Code:

FFDB Edit And Delete
I've got a news program that you can upload the new news via a form, puts the data into a text file etc. I'm trying to find a way to delete certain lines from the txt file and to be able to edit them. I've played around with a few things but i just can't seem to get anything close to what i'm after.

I've looked around the web but all i can find is like "open the file > put into array > do what needs to be done > write back to the file" which isn't exactly that helpful. Could anybody point me in the right direction as to how to do this? maybe with a better description/example? =D

Word File Edit
I am trying this code to edit word file, it works fine if the both strings are same lenght but not if both are of different length.

<?PHP
$tmp=file_get_contents("work.doc");
$tmp = str_replace ("sys" , "asd",$tmp);
$tmp=file_put_contents("work2.doc" , $tmp);
?>


Copyright © 2005-08 www.BigResource.com, All rights reserved