| |||||||
This is a discussion on PHP help.... within the Technical Help forums, part of the Off Topic category; rite, i want to do two things.... first of all i want to put a rotator script onto a rollover ...
![]() |
| | Thread Tools |
| | #1 |
| iPod 60gb Join Date: Nov 2007 Location: Reading
Posts: 1,706
![]() ![]() | PHP help....rite, i want to do two things.... first of all i want to put a rotator script onto a rollover image that i have in Dreamweaver. i.e. when people click the image, it will take them to a random URL (from a list of 20 ish) secondly, i wana put an email thingy in like the one Xaviier have on her website, Free iPhone, Free PS3, Free Xbox, Free Wii - Save-Your-Money.co.uk :: Home ... she told me to use this site... PHP Contact form with image code verification but i have no idea how to put in PHP-ness ... :P any tips people
__________________ |
|
| | #2 |
| Mini Mac Join Date: Feb 2008
Posts: 3,143
![]() ![]() ![]() | Re: PHP help....Download the contact form using the link at the bottom of the page, extract the files, change the name of index.php to contact.php and upload them to your website then add a link to contact.php on your site. You should make sure your website supports PHP first though. |
|
| | #3 |
| iPod Nano 4GB Join Date: Apr 2008 Location: Telford
Posts: 266
![]() | Re: PHP help....Ah - sorry, I just figured you'd know what to do with the files! I presume you've downloaded the files for the form? After changing index.php to contactform.php all you need to do is upload the files to the same folder as your website and on the page where you'd like the contact form to be you use the following code: Code: <?php include('contactform.php'); ?>
Code: // if verification code was correct send the message and show this page
mail("contact@save-your-money.co.uk", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
^_^ |
|
| | #4 |
| iPod 60gb Join Date: Nov 2007 Location: Reading
Posts: 1,706
![]() ![]() | Re: PHP help....huhmmm..not working yet... going to eat, and then have another lookey thanks tho
__________________ |
|
| | #5 |
| iPod 60gb Join Date: Nov 2007 Location: Reading
Posts: 1,706
![]() ![]() | Re: PHP help....how would you go about doing that? i have the php code all correct, and i have renamed my index.php to contact.php, as well as altering my email address in the mailer.php in my design view i have a little green box with php in it, and the code looks good as i have already said. still not getting it working though ... how dod i make my website support php?
__________________ |
|
| | #6 |
| Mini Mac | Re: PHP help....To test if you can run PHP, make a file called test.php and put the following in it: Code: <?php phpinfo(); ?> |
|
| | #7 | |
| Mini Mac Join Date: Feb 2008
Posts: 3,143
![]() ![]() ![]() | Re: PHP help....Quote:
| |
|
| | #8 |
| Mini Mac Join Date: May 2005 Location: London
Posts: 6,321
![]() ![]() ![]() ![]() | Re: PHP help.... |
|
| | #9 |
| Mini Mac Join Date: Feb 2008
Posts: 3,143
![]() ![]() ![]() | Re: PHP help....But not everyone wants to install php and a web server just to test a single page. And if he uploads it, if there are any errors others will be able to help diagnose the problem. |
|
| | #10 |
| BANNED | Re: PHP help....anybody know if this is possible to do using a freewebs site? *blushes* |
|
| | #11 |
| iPod Nano 4GB Join Date: Apr 2008 Location: Telford
Posts: 266
![]() | Re: PHP help....As stated in the Freewebs FAQ: What about MySQL, MSACCESS, and PHP? Unfortunately, Freewebs does not offer these functions. |
|
| | #12 |
| BANNED | Re: PHP help....o well |
|
| | #13 |
| iPod Nano 4GB Join Date: Apr 2008 Location: Telford
Posts: 266
![]() | Re: PHP help....Whether or not your website utilizes MySQL, MSACCESS and PHP is irrelevant when it comes to SEO. However.. Freewebs is basically a 'WYSIWYG' setup - (this assumption is based upon a quick look at what they do) - and it appears that they're highly template based. If you try and optimize the site.. you're not going to get as good results than if you had your website hosted on a proper host (with all of the code being your own). This is due to duplicate website structure and because it's template based (and there are a lot of freewebs sites using the same or similar code) your website isn't going to have the same amount of credibility with Google. I'd recommend signing up to a host like HostGator. I've been with them for 3+ years and I have had no problems. You can get your website up and running on there for $4.95 a month. My account with HostGator has unlimited everything, I run about 10 sites with them and pay $24.95 a month - they're that good. If you're not wanting to spend money on hosting and aren't aspiring to be #1 on Google for any search terms, I'd say stay with Freewebs. You'll still get high enough in Google to get decent traffic. |
|
| | #14 | |
| Mr Baldy Chicken | Re: PHP help....Quote:
__________________ | |
|
| | #15 | |
| Mini Mac Join Date: Feb 2008
Posts: 3,143
![]() ![]() ![]() | Re: PHP help....Quote:
But I'd question whether you need to move hosts. You can upload your own site to freewebs using "advanced HTML" mode. I would recomend you get your own domain though, you can get one at co.cc and point it to your freewebs site. As per the standard advice if you search for freewebs there are some threads that talk about SEO and freewebs. And has anyone seen angrycow about lately. He said to submit a support ticket to get ads removed from your site but he hasn't replied to mine. | |
|
![]() |
| Thread Tools | |
| |