Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 01:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



TS3admin Channel erstellen mit Variable

Discussion on TS3admin Channel erstellen mit Variable within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2012
Posts: 2
Received Thanks: 0
Exclamation TS3admin Channel erstellen mit Variable

Hallo leute,

mein Problem ist ich will auf einer website einen kleinen bereich haben wo leute ein Channel Frei erstellen können. soweit klappt alles bis auf das der name nicht mit geleitet wird der eigentlich ankommen dann soll.

PHP Code:

<?php

    
include('ts3-class/lib/ts3admin.class.php');

    
$ts3 = new ts3admin('127.0.0.1'10011);
    
$name="";
    
$ts3->connect();
    
$logged $ts3->login('serveradmin''xxxxxxxx');

    if(
$logged["success"]) {
        
$select $ts3->selectServer('9987'true);
        if(
$select["success"]) {
            
$settings = array();
            
$settings['channel_name'] = $name;
            
$settings['channel_flag_permanent'] = 1;
            
$ts3->channelCreate($settings);
        } else {
            echo 
'Server kann nicht ausgewählt werden!';
        }

    } else {
        echo 
'Login fehlerhaft!';
    }
?>


HTML Code:

<!DOCTYPE html>
<html lang="de" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>channel erstellen</title>
  </head>
  <body>
    <form class="" action="index.php" method="post">
      <input type="text" name="name" placeholder="Name des Channels" value="<?php echo $name; ?>"><br>

      <button type="submit" name="" value="Abschicken">Senden</button>
    </form>
  </body>
</html>
Seveee71 is offline  
Old 10/08/2018, 22:13   #2
 
Der-Eddy's Avatar
 
elite*gold: 400
Join Date: Nov 2008
Posts: 67,905
Received Thanks: 19,505
ich hab den Quelltext nur überflogen aber du liest gar nichts aus der Post Request aus, deswegen landet bei dir am Ende auch nichts

Code:
$_POST['name'])
würde den Inhalt aus dem Formular auslesen
Der-Eddy is offline  
Reply

Tags
code, php 5, ts3


Similar Threads Similar Threads
Variable in Variable
08/09/2016 - AutoIt - 2 Replies
Ich habe ein kleines Problem. Ich bin neu in AutoIt. mein Problem ist folgendes: Ich will in einer Variable einen Path speicher: $NameVar = C:\Users\ Das ist kein Problem. Aber hinter "C:\Users\" soll jetzt aus einer anderen Variable ein Ordner Name genommen werden. Also in etwa: $NameVar = Ordner2 $PathVar = C:\Users\ $NameVar nur so geht das ja nicht ganz ... was kann ich machen? Die Idee dahinter ist das er einen Ordner mit DirCopy() mehrfach erstellt im gleichen Ordner mit...
[PHP/JS] Ein Problem mit TCPDF bzw. mit passen einer Variable
02/19/2016 - Web Development - 3 Replies
Hallo zusammen, ich habe aktuell folgendes Problem und bin tatsächlich am verzweifeln. Mein Ziel: Ich möchte gerne eine HTML Tabelle in einer Variable speichern und entsprechend in ein anderes Script weitergeben um diese dort zu verwenden. Die Tabelle soll mit Hilfe von TCPDF als PDF exportet werden. Folgendes habe ich bisher gecoded: Die Testtabelle: <div id="tablecontent">
ts3admin.class channel erstellen
05/20/2013 - Web Development - 9 Replies
Tach, Ich habe ein kleines POST Script erstellt. Oben hab ich eine Variable erstellt die sich $name nent. Dort wird der Name der in der Textbox beim Formular eingetippt wurde gespeichert. Meine Frage ist wie ich via ts3admin.class dann einen Channel erstellen kann. channelCreate($name) hab ich schon probiert , leider vergebens.
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)



All times are GMT +1. The time now is 01:49.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.