View Full Version : Form Q
Patrick 03-20-2005, 02:03 PM I was wondering if I could let people make buddy profiles.
Have a text area for them to type what they want in their profile, and click submit, bring them to a new page, and give them the link to place in their buddy profile:
<a href="mydomain.com/plbeane94_buddypro.html" target="_self">Click to View My Buddy Profile!</a>
Spyware 03-20-2005, 02:36 PM I was wondering if I could let people make buddy profiles.
Have a text area for them to type what they want in their profile, and click submit, bring them to a new page, and give them the link to place in their buddy profile:
<a href="mydomain.com/plbeane94_buddypro.html" target="_self">Click to View My Buddy Profile!</a>
THat would require some way to store the data, which would either mean having a database or storing it in flatfiles. Most logical thing I could think of would be using PHP to do such a thing.
Patrick 03-20-2005, 02:39 PM Yes, but is there a way I can do it the way buddyprofile.com or buddy4u.com does it?
Meaning have them enter their screenname at the top, then they type what they want to have in their profile, and when submit is clicked, say they put johnnyjack04 as their screenname in the form, when submit is click, it would say for them to enter this into their profile:
<a href="plbeane94.com/johnnyjack04_buddypro.html" target="_self">Click to View My Buddy Profile!</a>
and if they did, it would show the text they entered in the textarea to be displayed.
Spyware 03-20-2005, 02:42 PM Without any PHP knowlege, I doubt it. The two things you would need is a webhost that provides PHP support, and actually knowing PHP.
Patrick 03-20-2005, 02:44 PM I do know php, but you can do it in ways other than php. I have seen it happen before without using php.
And I don't have much php knowledge, mostly html, but I am sure my host allows me to use php.
Spyware 03-20-2005, 02:47 PM I do know php, but you can do it in ways other than php. I have seen it happen before without using php.
And I don't have much php knowledge, mostly html, but I am sure my host allows me to use php.
If you could give me an example of where they did i without PHP, I could take a look. It can't be done strictly in HTML because though there is a way to make forms with HTML, there is no way to store the data.
Patrick 03-20-2005, 03:11 PM I'll view the source and give you an example of it.
Patrick 03-20-2005, 03:54 PM nvm, they are using php. Can you help with php then? Or atleast gimme an example of what i'd do?
Spyware 03-20-2005, 04:39 PM nvm, they are using php. Can you help with php then? Or atleast gimme an example of what i'd do?
If using MySQL, first, you'd need to set up a database. It should have fields such as username, a field for the buddy profile text, etc. Then, you'd need to write a form code, and the action of that form would have to be a PHP script that would insert data into the database. To view the profile, you would have to use the mysql_fetch_array function and the GET function together to get the username from the URL, then get the info from the database about that user. To explain it in complete detail would take a while, and, it would actually be easier to code than it would be to explain it.
Patrick 03-20-2005, 11:16 PM Can you please code it then? :)
If you have the time, I mean.
I really need these done!
starlet 03-22-2005, 12:13 AM Then either pay someone to write code for you or be patient and thankful to the person who may do it for free.
Spyware 03-22-2005, 02:03 AM If I get the time, I'll try to get something for you. I currently have some other things I must do for some other people, but I will try. =)
Patrick 03-22-2005, 12:26 PM Thanks! For free, right?
Thanks (x5)!
If I can be any help to you, just let me know.
Spyware 03-22-2005, 10:24 PM Thanks! For free, right?
Thanks (x5)!
If I can be any help to you, just let me know.
Of course for free. =P
Patrick 03-23-2005, 08:34 PM Ok thanks! Let me know if you need any help in your website... if you do, either IM me with ICQ my number is 261090437 or IM me with AIM my screenname is plbeane94 or you can post it here in the forums!
Sheila 03-24-2005, 06:58 AM Closing this thread. You can contact eachother by PM or email.
|