(PHP) $_POST without a form?

Can $_POST be used when the calling page is not a form?
I have link that uses the url and $_GET method of
transferring a
variable... www.domain.com?variable='something'
How can this be done without the variable being displayed?
Can you
manually set the $_POST variable or do you have to use a
form?
Or is it possible to pass variables in another manner?
Thanks,
Harvey

On 15 Oct 2008 in macromedia.dreamweaver, eclipsme wrote:
> Can $_POST be used when the calling page is not a form?
>
> I have link that uses the url and $_GET method of
transferring a
> variable... www.domain.com?variable='something'
>
> How can this be done without the variable being
displayed? Can you
> manually set the $_POST variable or do you have to use a
form?
You can manually set $_POST, but it doesn't survive to the
next page[1].
> Or is it possible to pass variables in another manner?
http://www.php.net/manual/en/ref.session.php
[1]
post1.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<title>Post 1</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This page sets certain $_POST variables. <a
href="post2.php">Go to the next page</a></p>
<?php
$_POST['somevar'] = "sumthin";
$_POST['another'] = "sumthin else";
?>
<pre>
<?php print_r( $_POST ); ?>
</pre>
</body>
</html>
post2.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<title>Post 2</title>
</head>
<body>
<h1>Goodbye, World!</h1>
<p>This page may receive certain $_POST
variables.</p>
<pre>
<?php print_r( $_POST ); ?>
</pre>
<p>Nope.</p>
</body>
</html>
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php

Similar Messages

  • How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    How to delete multiple songs from iPhone 5S without losing form iTunes? The unchek function has not worked. Why?

    Sorry I had to reply through your profile Gail from Maine, my PC has java issues. In any event, when I delete them directly from my device everything is perfect and cool. However, in the rare instance I want to add new music that I actually buy in stores (I know, quite the unique and old-fashioned idea...but hey Im an audiophile) once I upload the tunes, everytime I sync my library it re-adds everything that I spent hours deleting. In a perfect world, I thought I could maintain a massive iTunes Library, and add or delete (remove) songs from my iPhone to save both memory or keep my iPhone selections more current/apt to my musical "tastes" at that time. I know about the whole playlist thing, but thought there might be an easier way. ie - checking/un-checking the little box next to the song name, and then doing a sync. Again, everytime I do this however, whether everything is checked or un-checked it adds the entire library! So frustrating. Any suggestions. Thank you graiously in advance for your help.

  • Report without Parameter form

    I would like to generate report without Parameter form being displayed.How to do?

    If you use Forms to pass parameters to Reports, use add_parameter('PARAMFORM',text_parameter,'NO'). This will "disable" the parameter form.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by keyurashu:
    I would like to generate report without Parameter form being displayed.How to do?<HR></BLOCKQUOTE>
    null

  • Loading and external php page without reloading

    Hi to all,i want to load(include) php pages without reloading
    the whole page?how to accomplish that in Spry?Also can we include
    php pages also through the HTML PANEL in spry?forexample, i have a
    link which i click it should fetch dreamweaver recordset values in
    php without reloading the whole page.Is there any XML involved or
    it can be done merely through HTML Panel in Spry.Kindly help me in
    this regard.

    You can include a whole page (or part of a page) with the
    HTML Panel widget. No XML is needed for this.See the following
    page
    for HTML Panel examples and just replace the static pages by your
    php pages.

  • CST% should calculated two different rate for C Form /  Without C Form

    Hi,
    How we can assign to one CST% condition against two different rates for C Form / Without C Form for same Plant/Vendor/Material.
    My scenario is, we have purchased the Material for one plant from Vendor, but Vendor has given the material against C Form or Without C Form not fixed.
    We have used to Plant/Material/Vendor Key combination for updating CST (JVCS) 2% condition through FV11. And created two PO for C Form 2% & second 5% Without C Form but it is showing 2% in both PO as per maintained in condition.
    When we have received the material against without C Form 5%, changed in CST (JVCS) condition 5% and do the MIGO and same think do for against C Form.
    How to resolve this type problem without changing?
    But it is possible in SD their maintaining Price Group; same is it possible in MM.
    Devendra

    Hi,
    1 .How we can assign to one CST% condition against two different rates for C Form / Without C Form for same Plant/Vendor/Material.
    As suggested by the Pankaj you need to create 2 tax code i.e. one with C form & other as Without C form having appropriate Percentage maintained in the condition record ( FV11 )
    My scenario is, we have purchased the Material for one plant from Vendor, but Vendor has given the material against C Form or Without C Form not fixed.
    We have used to Plant/Material/Vendor Key combination for updating CST (JVCS) 2% condition through FV11. And created two PO for C Form 2% & second 5% Without C Form but it is showing 2% in both PO as per maintained in condition.
    As you may have maintained single tax code with the 2% condition record so same % flows in both PO , Use 2 sperate tax code it will resolve the issue.
    Regards
    Mascot.

  • Print a number variable as a real number without approximation forms

    Dear all
    I want to pront my variable number without approximation forms, here is my output problem:
    SQL> select imsi from table where num like '393';
    number
    *2.2202E+14*
    I want that the output will display as a real nyumber without approximation.
    Regards
    Ali

    chg78 wrote:
    yes, and it is working for me, i am using SQL DEVELOPER,
    how can i paste the result?
    CAST(2.2202E+14ASNUMBER(38,2))
    222020000000000
    All you're doing is turning a number specified in scientific notation to a number i.e. doing nothing.
    Just to prove it, if you look at the underlying datatypes:
    SQL> ed
    Wrote file afiedt.buf
      1  select dump(2.2202E+14)
      2        ,dump(cast(2.2202E+14 as number(38,2)))
      3* from dual
    SQL> /
    DUMP(2.2202E+14)
    DUMP(CAST(2.2202E+14ASNUMBER(38,2)))
    Typ=2 Len=4: 200,3,23,3
    Typ=2 Len=4: 200,3,23,3Both the original number and the CAST'd number produce identical results.
    The difference is that your SQL Developer environment isn't set up to display large numbers in scientific notation, but displays it as a full number.
    The issue the OP was having was that querying a number in the SQL*Plus environment (as indicated by the "SQL>") a full number was being displayed as the short hand scientific notation.
    Edited by: BluShadow on 16-Mar-2011 11:30
    to add the proof of cast making no difference.

  • How to analyse the data with &without free form of planning

    Hello Expert's,
    I am new to this concept's and I want to know the difference between with Free form &without Free form in SmartView of Planning data.I need a navigation path to know the difference between these two.
    Thanks in advance

    Thanks, i think i figured it out. I changed the cpx files in my client projects to point to the new data source.
    And i also added the new data source on the Application Server: I added a new data source for each BC4J module (with the Enterprise Manager UI) and i also changed the data-sources.xml files in the directory j2ee/application-deployment and j2ee/applications.

  • I am looking for a way to enter multiple dates into a field without the form becoming too long.

    I am looking for a way to enter multiple dates into a field without the form becoming too long.
    This will be used by an old school bookeeper who needs the form to fit on one page.
    Any ideas?

    Hi,
    If you don't need the field to provide a date picker, verify it's a date, or don't need to sort the dates in the table, you can just use a text area field, and have your form filler enter the dates comma separated.  Otherwise you'd have to add multiple fields.  However, you can lessen the space each field takes up veritically, by using the "Labels Left" option (in the toolbar).
    Thanks,
    Todd

  • Sql for extract file path without file_name form the folumn value

    Dear Experts,
    can someone give the sql script to extract file path without file_name form the folumn value.
    can someome provide sql to extract only path in the column value.
    column value :
    /data/rrsapus/oradata22/rrsa_25122011rpsp_arpch.rsp
    i need output like this */data/rrsapus/oradata22/*

    Hi,
    Welcome to the forum!
    INSTR and SUBSTR is probably the most efficient way. Use INSTR to find where the last '/' is, and SUBSTR to get that many characters, starting from the beginning of the string.
    INSTR and SUBSTR (and REGEXP_SUBSTR, and REGEXP_REPLACE, and RTRIM, and REPLACE, and all the other bullt-in functions) are documented in the SQL language manual:
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/index.htm
    REGEXP_SUBSTR or REGEXP_REPLACE would also do the job, perhaps with a little less code, but maybe not as efficiently.
    Here's a more creative way:
    SELECT     RTRIM ( str
               , REPLACE (str, '/')
               )          AS file_path
    FROM     table_x
    ;What results do you want if str does not contain a '/'?

  • Is there any way to use the bundled PHP compiler without web sharing on?

    Is there any way to use the bundled PHP compiler without Web Sharing on? Is there a way to make sure Web Sharing only allows local access so others on the network cannot access it? Any other easy way to get a PHP compiler on a Mac? I currently run Mac OS X 10.7.4. Any other security issues that might pop up from leaving Web Sharing on? Basically I just want a local PHP compiler so I can do some coding.

    You can use another router as an 'extender' (I know that this will work seemlessly with AirPort Extemes and AirPort Express's - you'll have to check with your router manufacturer to determine what they recommend for range extenders).
    You may also want to take a look at this link - http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html - it may offer some tips.
    Clinton

  • Trouble linking AS3 and PHP to create email form

    I am using one of the Adobe cookbooks to create an email form for my flash website. I am SO close to getting this right and need some help! I used the AS3 code below as well as the PHP code below in order to create the email form. Everything seems to be working fine, that is until I try to send an email using the form. When I input all of the text into the form, I get the actionscript default warning I wrote that states "Oh no! Something is wrong! Try again..." Hence the email will not send. What could be wrong with the script? Or does it matter where I file the PHP file, my swf file, html file, and my fla file? I tried several combinations of filing everything together, seperate, and everything in between. Help! And thanks for anyone who can help!
    ACTIONSCRIPT CODE USED:
    stop();
    Buttons      
    sendbtn.buttonMode = true;
    sendbtn.addEventListener(MouseEvent.CLICK, submit);
    resetbtn.buttonMode = true;
    resetbtn.addEventListener(MouseEvent.CLICK, reset);
    Variables needed       
    var timer:Timer; var varLoad:URLLoader = new URLLoader;
    var urlRequest:URLRequest = new URLRequest( "mail.php" );
    urlRequest.method = URLRequestMethod.POST;
    Functions
    function init():void{
    //Set all fields to empty
    yourName.text = "";
    fromEmail.text = "";
    yourSubject.text = "";
    YourMsg.text = "";
    function submit(e:MouseEvent):void{
    //Check to see if any of the fields are empty
    if( yourName.text == "" || fromEmail.text == "" ||
    yourSubject.text == "" ||YourMsg.text == "" )
    { valid.text = "All fields need to be filled.";
    //Check if you're using a valid email address
    else if( !checkEmail(fromEmail.text) )
    { valid.text = "Enter a valid email address"; }
    else { valid.text = "Sending over the internet...";
    var emailData:String = "name="
    + yourName.text + "&from="
    + fromEmail.text + "&subject="
    + yourSubject.text + "&msg=" + YourMsg.text;
    var urlVars:URLVariables = new URLVariables(emailData);
    urlVars.dataFormat = URLLoaderDataFormat.TEXT;
    urlRequest.data = urlVars; varLoad.load( urlRequest );
    varLoad.addEventListener(Event.COMPLETE, thankYou );
    function reset(e:MouseEvent):void{
    init(); //call the initial clear function
    function checkEmail(s:String):Boolean {
    //This tests for correct email address
    var p:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/; var
    r:Object = p.exec(s);
    if( r == null ) {
    return false;
    return true;
    function thankYou(e:Event):void {
    var loader:URLLoader =
    URLLoader(e.target);
    var sent = new
    URLVariables(loader.data).sentStatus; if( sent == "yes" )
    valid.text = "Thanks for your email!";
    timer = new Timer(500);
    timer.addEventListener(TimerEvent.TIMER, msgSent);
    timer.start();
    else {
    valid.text = "Oh no! Something is wrong! Try again..."; }
    function msgSent(te:TimerEvent):void {
    if( timer.currentCount >= 10 ) { init();
    timer.removeEventListener(TimerEvent.TIMER, msgSent);
    PHP CODE USED
    <?php $yourName = $_POST['name'];
    $fromEmail = $_POST['from']; 
    $yourSubject = $yourSubject = $_POST['subject'];
    $YourMsg = $_POST['msg'];
    if( $yourName == true ) { $sender = $fromEmail; $yourEmail ="[email protected]";  (I have changed this to my email address, although not given in example)
    $ipAddress = $_SERVER['REMOTE_ADDR']; 
    $emailMsg = "$ipAddress \n$yourName  \n$sender
    \n\n$YourMsg 
    \n\n\n--Memo for myself--";$return = "From: $sender\r\n" .
    "Reply-To:$sender \r\n" ."X-Mailer: PHP/" . phpversion();
    if( mail( $yourEmail, "$yourSubject", $emailMsg, $return
    echo "sentStatus=yes"; }
    else { echo "sentStatus=no"; } }
    { $sender = $fromEmail; $yourEmail ="$fromEmail"; 
    $emailMsg = "\n\n\n--Memo for the sender. i.e. this is a copy of message you sent me.--
    \n\n$yourName  \n$sender
    \n$YourMsg \n";$return = "From: $sender\r\n" .
    "Reply-To:$sender \r\n" ."X-Mailer: PHP/" . phpversion();
    if( mail( $yourEmail, "$yourSubject", $emailMsg, $return
    echo "sentStatus=yes"; }
    else { echo "sentStatus=no"; } }
    ?>

    It may be indeed a problem of your server rsp. how it handles security issues and relative path-linking.
    You wrote: "Or does it matter where I file the PHP file, my swf file, html file, and my fla file..." I suppose you mean where to put all the files.
    1.Its a good beginners choice to put all the files you need (swf, html, php you don`t need the fla file on ) in the same directory of your server.
    2.If you publish to html from flash there will be three tags in the html (use a texteditor to look at the html-code) that read like this:
    <param name="allowScriptAccess" value="sameDomain" />
    change them for testing purposes to
    <param name="allowScriptAccess" value="always" />
    3.On some servers to prevent malicious code php scripts are restricted to certain directorys, look up the phpinfo on your server
    4.Even if swf, html and php are in one and the same directory use a "hard" path in your fla file for testing purposes, for example instead of calling "file.php" in your actionscript, call ("http://www.mydomain.com/directory/file.php"), when testing from flash you may get a better response where the problem lies

  • Is there a way to shift fields down or remodify document in Word without losing form fields?

    I have a document that I created from Word and added in forms and fields in Acrobat. I now need to shift some fields down to make more space on the page and also adjust widths on some tables. Is there a way to do this easily in Acrobat? If not, is it possible to some how go back into Word (with some sort of link) and make these changes without losing all my fields/formulas/etc.?
    I am not using Forms Central because I have calculations in my form.
    Thank you in advance!

    I am having trouble finding (Document -> Replace Pages). I did find Layers in Navigation but I do not see any. Do I not have any layers in my PDF? I opened a Word Document in Adobe Acrobat Pro and proceeded to add my fields and formulas in the document. Shouldn't this automatically create a layer ontop of the content?  Sorry for all the questions, I am pretty new with Acrobat Pro.
    Thanks!

  • Can a change be made to the original Word document without losing form fields in a saved PDF form?

    I have a new fillable form created with Acrobat 9 that has 10 pages of fields on it. I noticed a typo in the original Word doc I created the form from and wondered if there is anyway to make changes in the source document without having to recreate all fields again.
    Thanks!
    Frank

    Yes, just create a new PDF and replace the pages of the old one that has the form fields with the pages from the new: Document > Replace Pages
    Any fields, code, bookmarks, links, etc. will be retained.

  • How to combine two PDF files without consolidating form fields

    I have two PDF documents with form fields in each. Someone else created the documents. Certain fields were untitled and thus were given names as "undefined" in each document. However, some of those fields contain different information in each document. When i combine the document, these fields mix and incorrect information gets put into certain fields.
    For example, there is a blank field in doc A, titled "undefined." In doc B, there is a field with "johnson" titled "undefined." When I combine them, "johnson" appears in the blank field.
    Is there a way to combine the documents without combined fields?

    Is this the correct window I should see? I hit start and it said it was completed, but nothing seemed to happen.

  • Email interactive pdf from webdynpro without displaying form

    Hi all,
    We have a webdynpro application that needs to generate an interactive form and send it by email, without first displaying it to the user.  I have built the interactive form in a webdynpro component and it works fine, but I think it requires the window to be opened to generate the pdf xstring to be attached to the email.  But we do not need the window to be opened because the users don't want to review the form before sending it. (whether this is a good idea or not is not up for discussion. )
    I am wondering if there is a better way to accomplish this? More detail on scenario: the user selects some data in the screen and then clicks a button like "send form". They fill out a popup with recipient info and then click "send".  A form based on the data they originally selected should be sent to the recipient. The recipient (who does not have access to SAP) fills out some fields in the form (hence it needs to be interactive), then sends the completed form back to the originator via email.
    Thanks for any suggestions!
    Margaret

    Thanks to all for your responses. I could have stated the problem more succinctly as: how to send a form with ZCI layout (not standard layout) via email? 
    The pointers you gave are helpful and probably would have gotten us to the solution. We found we could use the normal functions, "CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' ...." and then
    CALL FUNCTION funcname
      EXPORTING
        /1bcdwb/docparams  = fp_docparams
          /1bcdwb/docxml     = docxml
    where docxml is the output of a custom transformation we built to convert a deep ABAP structure to the correct XML format. (Note that "CALL TRANSFORMATION id ..." does not work correctly for converting deep structures for ABAP forms because the id transformation inserts <item> where <DATA> is needed.)

Maybe you are looking for

  • Assets management and inventory Management.

    This may be simple situation often encountered in industries. The need is to manage an item as an asset as well as manage inventory functions of purchasing, receiving, physical inventory and issue of these assets to customers as inventory materials.

  • Publishing KM content in portal

    Hi, I need to upload and publish the templates (excel file)to the portal. I can able to upload the same in Content AdministrationàKMContentàFolderàNewàRight clickàUpload. But the same is not publishing in portal. As my requirement is to replace the o

  • How to create a forum/discussion

    Forgive me if this subject has been covered,I am looking at starting a forum about the industry I work in with the view to raising revenue through advertising on the site/forum,all the free programs seem to have advertising built into their templates

  • Lost connection to XE after adjusting SGA and PGA

    I lowered SGA from 170M to 50M, and PGA from 60M to 10M. Now I can not connect to XE using apex. Toad also reports ora-12514. I rebooted the pc and also manually cycled the db. But nothing works. In Service the oracle servies appear to be fine. Thank

  • InDesign Trial won't open

    I just downloaded and installed the InDesign trial with no problems, until the very end when I hit the "Launch" button, it showed the pink intro thing for a bit and then just quits and says "InDesign.exe has encountered a problem and needs to close.