![]() |
Echoing A Variable?
Im doing something very basic and Im stumped for whatever reason.
Basically in the showthread template I have a text line called <input type="text" name="testme" value="$testme" size="12"> When I click the perform action button it should echo whats in the variable "a.k.a" a string. In postings.php Im trying to echo $testme; No luck. Make sense? |
i think you need to place your var within "" like
Code:
echo "$testme"; |
naw that didnt work either. Hmm...
In postings.php I have PHP Code:
PHP Code:
I'm not even sure if Im doing this right... Ok I did a PHP Code:
|
Where are you setting $testme?
|
1 Attachment(s)
in a text box, value="$testme"
and the text box is actually under one of the radio buttons in the threadadmin manage. see below |
Quote:
PHP Code:
PHP Code:
|
wow that worked! Thankyou so much, I'm sure I'll have more questions later to be asked now that I got past this part. Thanks again Danny
what about a checkbox variable sir? How do I pass that on? |
Quote:
HTML Code:
<input type="checkbox" name="options[]" value="x"> PHP Code:
|
Thanks Danny, seems to be working so far!
|
I'm glad everything is working. Get into the habit of sanitizing all of your variables, as it is a security risk if you don't.
If you need more information on it, there is documentation inside the file at includes/class_core.php :) |
All times are GMT. The time now is 08:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|