Top.Mail.Ru
webdev, posts by tag: php - LiveJournal — LiveJournal
? ?
 

webdev, posts by tag: php - LiveJournal

About  

Email Forms Jul. 9th, 2010 @ 01:33 pm
Imagemhairiclaire
Image
 Hi everyone.

I'm a newbie in the web design area and have up until recently only been responsible for front end design. I am currently creating a website for a charity and require two separate email forms to be included. I can set up the HTML for the form no problem but I have no idea what I'm doing with the php. For this reason I used a script generator that I found online. 

The problem here is that when you send the form the "thank you" page shows up but the message is never sent to the address. I've been through the FAQs and search online for answers but I'm having no luck. Does anyone know if this type of script requires me to set up a specific extension where the site is hosted? Or if there is a tutorial somewhere to advise me on how to get it working properly? 

Thank you for any help you can provide (and I apologize if the questions makes very little sense).
Current Mood: confusedconfused
Tags:

Help for a PHP Beginner Jul. 10th, 2009 @ 07:32 pm
Imagetactful_cactus
Image
Okay, I'm hoping somebody can help me with this. I'm a total beginner when it comes to writing PHP from scratch, and I'm trying to throw a bunch of things together an make them work.

Here's what's up: I have a simple login form—very very basic with minimal security (it doesn't really need to be secure). The usernames and passwords are just a few different logins predefined by the site owner, so they're just retrieved and checked through an array, like this:
Full Explanation Under CutCollapse )

I just don't have my syntax down nearly well enough to get it right. I've tried about a hundred variations of using in_array (e.g. "if (in_array($username, $users)..." but I just can't get it.


...help?
Tags:

Getting Variables from JSON in PHP Nov. 13th, 2008 @ 05:20 pm
Imagefuzzygoth
Image
I have been working with the Ajax Google search (sans javascript) but I am
totally stuck. Does anyone know how after using the $json->decode($my_var);
how to strip the individual values out so I can display the Google search
Results. Its driving me up the wall and there is very little documentation
on this that I can find to use.

code sampleCollapse )

posting seems to have mangled my code :(
Current Location: work
Current Mood: frustratedfrustrated
Tags:

php editors for apple macs Jun. 23rd, 2008 @ 02:18 pm
Imagefuzzygoth
Image
I am looking for a free editor for php for my apple mac, I have php 5 installed and
want to start coding it on the mac, any suggestions?

Cheers
Current Location: desk
Current Mood: busy
Tags:

PHP: splitting a loop into separate include files May. 29th, 2008 @ 01:15 am
Imagevalera
Image
So here's the model: 3 files. First file starts a loop. Second file has some loop content. Third file closes the loop.

The files are so:

test.php:
<?php
include $_SERVER["DOCUMENT_ROOT"]."/test_header.php";

echo "hello";

include $_SERVER["DOCUMENT_ROOT"]."/test_footer.php";
?>


test_header.php:
<?php
$cond = true;
while($cond) {
?>


test_footer.php:
<?php
$cond = false;
}
?>


PHP complains:
[Thu May 29 01:04:00 2008] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected $end in R:\\html\\armenianreporter\\test_header.php on line 4

Line 4 is the one that closes the script in that file ("?>")

So the question is: Can this actually be done? If so, how? Do you know where in the PHP manual this is discussed?
Tags:
Other entries
Top of Page Powered by LiveJournal.com
Image