English
PHP, HTML & JavaScript- Forum

PHP - variables without URL-attachment transfer without form

 
- Page 1 -



Julian
Schmidt
Hi,
following situation. I have here[...]  a Link-list with the I variables by Get on a PHP-File[...]  commit.
sees then vaguely so from
https://julian-schmidt.XProfan.com/source.php?Name=ProgressBar.inc&Datei=includes/quelltexte/ProgressBar.inc


i want now the The data not on The URL appended go separate for users invisible transfer go.
Normaler point uses one for such tack The function mail. can I in this drop though not utilize I no form use.

what there for Opportunities.
me falls one The data by Get a further document zusenden and then by Session moreover on whom Highlighter To transfer. Or left through Formulare To supplant with Unsicherbaren Textfeldern in dennen the Content the variables drinnsteht. both Solutions are though only Frickellösungen. gives it better modes?

LG

Julian
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/30/13  
 



 
- Page 1 -


means for $_SERVER['HTTP_REFERER'] need no form,
there standing Yes drin of which URL the User comes.

You can form too by <a href dispatching by onclick=  [...] 

whom Submit-Button then css display:none settle or by css so shape that
it even looks like a konventioneller Link.
 
03/31/13  
 




Julian
Schmidt
Jo works. must whom Button but not display none settle there Javascript deaktiviert his could. :p
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 




Julian
Schmidt
hmmmm....gefällt me somehow not so well. mean I machs now still rather by Session and Weiterleitung by Header...
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 




Julian
Schmidt
Jo is such a thing schöner.
take The variables by Get against and schreib The as Session
<?php
session_start();
 $_SESSION["Datei"] = $_GET["Datei"];
 $_SESSION["Name"] = $_GET["Name"];
 $_SESSION["View"] = $_GET["View"];
header("Location: source.php");
?>

and read tappt im dunkeln then in source.php again.
<?php
session_start();
 $name = $_SESSION["Name"];
 $View = $_SESSION["View"];
 $File = $_SESSION["Datei"];

Greeting

Julian
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 



functions then but not if one with several Tabs operates,
means if is a others Click to view would like as The The
lastly The Sessionwerte staid has.
 
03/31/13  
 




Julian
Schmidt
still, as long as one not updated.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 




Julian
Schmidt
would be gladly with Session stay. ideas How I under Verwemdung of Session nevertheless several Tabs use can?
me falls there one, that I The variables circa a einmalige number erweitere. to that example The Filesize the Source in Bytes.
but not
 $_SESSION["Datei"] = $_GET["Datei"];

then z.B.
 $_SESSION["Datei_".filesize($_GET["Datei"])] = $_GET["Datei"];

there could it then naturally nevertheless To Doppelungen come.

[OFFTOPIC]hope the goes so from the Syntax[/OFFTOPIC]


better ideas???
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 



the sound for me sooner to "Fusch on the Bau" and its neither efficient. ^^

either transmit You by GET (want You do not, Why white I but not)
or by POST (would one Yes nothing of remember/ see)
or You urteilst anhand the Referer $_SERVER['HTTP_REFERER'] what well
right elegant would
or You make it mere by JS and DOM-Manupilation because You whom Content the
View source-Kontainer on The whole Page maximierst to the Motto
document.body.innerHTML=document.getElementById("quelltextcontainer").innerHTML
and the against could too with window.open join and in a new
tab whom Content the Kontainers transfer so How I that here on XProfan.com make.

latter comes complete without Server from.
 
03/31/13  
 




Julian
Schmidt
hmmm...what Have I me because straight again for NEN Humbug consider .
can still not NEN Variblennamen inquire whom I do not again rekonstruieren can, I The variables not transfer have.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 



 
- Page 2 -



Julian
Schmidt
Huch, You biste simply To quick

understand not integrally How You with the $_SERVER['HTTP_REFERER'] mean.
Php.net says moreover
Sofern present, The address the Page, on the the user a Link on The currently aufgerufene Page klicked has. this worth becomes of Browser the User staid. not any programs support this worth, some offerieren as feature even The Possibility, the value of HTTP_REFERER self To to determine. concise, you can this worth not really credit.


bring me Imho Yes first no dice The vorigen Pages in the rule Yes same are. namely in the rule includes.php and quelltexte.php.

JS likes I net
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 



$_SERVER['HTTP_REFERER'] uses you then nothing, if you several Source
on of/ one Page have, that is correctly..

If you JS not bring into action want, then must You it hold serverside solve,
means the Server already somehow communicating, what it at all Show should.

the goes by GET or by POST or by Cookie, but Cookie settle by JS
like You presumably neither. means Get or mail. Get can You already self,
mail have I declared and there see so did i no detriments.

could too Get take and by mod_rewrite by .htaccess-File hold a
"schöne" URL format How z.B. /showsource/includes/rofl.inc

Rewriten could z.B. so:
CompileMarkSeparation
and serverside explodest whom undertow. getenv("QUERY_STRING") with /
 
03/31/13  
 




Julian
Schmidt
OK, stay then probably with the actually Variante. With the several Tabs can I verschmerzen. come probably sometime on this Beiträg back.

thanks for your Mühen.
 
XProfan X2
Win7 Professional, SP1, AMD FX(tm)-8350 Eight-Core Processor

˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
03/31/13  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

36.650 Views

Themeninformationen

this Topic has 2 subscriber:

Julian Schmidt (10x)
iF (5x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie