| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Skittles
Super #1
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
|
What did I screw up?
Ok I think I must have screwed something up here.. here are the 2 pieces of code in this that work....
PHP Code:
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people. |
|
|
|
|
|
#2 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,087 posts
Gave thanks: 48
Thanked 131 times
|
You have variables inside single quotes, which doesn't parse them. Either change that to double quotes or concatenate them ('text'.$variable.'moretext').
|
|
|
|
|
|
#3 (permalink) |
|
Skittles
Super #1
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
|
aha i knew i changed something from the original. thank you
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people. |
|
|
|
|
|
#5 (permalink) |
|
Skittles
Super #1
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
|
That and for disposing of all of those dead turkeys
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people. |
|
|
|
|
|
#7 (permalink) |
|
is scientific.
Resident.
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
|
I made mine on afterbeing from pieces of a script I found online, and ideas from parts of Haugland's gallery registration page. :thumbsup
|
|
|
|
|
|
#8 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
Hey dew, rather than having a gajillion lines of codes for each var, why not do something like...
PHP Code:
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|
|
#9 (permalink) |
|
Registered User
Comfy Contributor
Joined in Mar 2004
Lives in Herts, UK
Hosted on Webdev & SH108
111 posts
Gave thanks: 0
Thanked 0 times
|
one thing to watch with that method is that people don't start manipulating internal variables from other locations within your php that you don't want people to be able to change.
eg. if you have $username, you don't want people to send username as a post field as it would overwrite it. There's probably a good way of checking, though. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|