The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
||||
|
||||
i think you need to place your var within "" like
Code:
echo "$testme"; |
#3
|
||||
|
||||
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:
|
#4
|
|||
|
|||
Where are you setting $testme?
|
#5
|
||||
|
||||
in a text box, value="$testme"
and the text box is actually under one of the radio buttons in the threadadmin manage. see below |
#6
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
|
#7
|
||||
|
||||
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? |
#8
|
|||
|
|||
Quote:
HTML Code:
<input type="checkbox" name="options[]" value="x"> <input type="checkbox" name="options[]" value="y"> <input type="checkbox" name="options[]" value="y"> PHP Code:
|
#9
|
||||
|
||||
Thanks Danny, seems to be working so far!
|
#10
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|