[SOLVED] php re-writing variables in config from form

This is a discussion on "[SOLVED] php re-writing variables in config from form" within the PHP Forum section. This forum, and the thread "[SOLVED] php re-writing variables in config from form are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 21st, 2008, 13:54
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] php re-writing variables in config from form

Hello,

I'm writing a script that will install a jobs website.

I have it now so that it creates the tables in the database etc.

Now what I want to do is have a couple of fields in the form for the user to input their website URL, website name, and a few other details but I don't want this information to go in the database. I want this information to re-write some variables in a config file.

I've never done this before and while I do have ideas in my head on what to do, when it comes to doing it I get lost!

Any ideas how to do this, or can anyone point me in the right direction of a tutorial on how to do this?

Thanks
Reply With Quote

  #2 (permalink)  
Old Jan 22nd, 2008, 03:51
Weird1993's Avatar
Moderator
Join Date: Feb 2007
Location: United States
Age: 15
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Weird1993 Send a message via Skype™ to Weird1993
Re: php re-writing variables in config from form

You want each user to have their own fields? Really, you could append a config file each time, but I really don't see the point in not using a database... If you want to explain in more detail, I'll try to help out further.
__________________
Daniel Thompson
danielwthompson.com
Reply With Quote
  #3 (permalink)  
Old Jan 22nd, 2008, 07:58
Emzi's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Manchester
Age: 25
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php re-writing variables in config from form

Quote:
Originally Posted by Weird1993 View Post
You want each user to have their own fields? Really, you could append a config file each time, but I really don't see the point in not using a database... If you want to explain in more detail, I'll try to help out further.
Actually, after reading what you just said I've had a brain wave I was worrying about having to call a specific table on every page, but if I just call it in the config file then it'll re-write the variables anyway... I think...

Basically I wanted them to input their details so when they install this site it'll have their correct details on certain pages like the contact page etc. and in the Title Tags, Meta tags etc. and getting that information from a variable...

It makes sense in my head but I'm useless when it comes to explaining

I'll have a go at what I think will work, and if it doesn't, in the words of swarzenegger (sp!) I'll be back!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pull Variables into a form without page refresh Andy K Classic ASP 3 Apr 11th, 2008 16:29
Form - variables not going through comaiwat JavaScript Forum 3 Oct 24th, 2007 13:53
[SOLVED] writing a config file saltedm8 PHP Forum 2 Oct 13th, 2007 18:31
[SOLVED] PHP Session Variables in a form DaisyWheel PHP Forum 4 Oct 12th, 2007 09:56
Display image/chart depending on variables from a form. Clare73 PHP Forum 5 Jul 20th, 2005 16:07


All times are GMT. The time now is 11:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43