Send A Variable Over To Another Page
I want to send a variable over to another page, but theres no form, i dont want to use session, and defiently dont want to use get!! so i was wondering would something like:
<?php
$_POST['someval']Â =Â 12345;
header("Location:Â path/path/somefile.php");
?>
View Complete Forum Thread with Replies
Related Forum Messages:
Send Variable To Page
Is there any way to do this (below code) without using the POST method (ie. is there a more discreet method where the "?problem=true" doesn't need to show in the URL)? if ($noProblems) { header("Location: index.php"); } else { header("Location: index.php?problem=true"); }
View Replies !
How Redirect A User To Another Page And Send Some Variable With The Post Method?
I make a user registration. It contains two/more page. First page is for official purpose. User ID, password and some other official information is in first page and user basic information is in second page. If user enter an user id that already exist in database then a message show the same page to change his user id otherwise page is redirect to second page and send user id, and other variable that was in first page. My Code:
View Replies !
Send This Page Script Used To Send Spam.
I had installed a simple php script (obtained for free from the web) that allows a visitor to forward a page to a friend. It worked great but now a spammer is using it to send thousands of emails. I have deleted the feature and also the php file but no successs. What can I do? Please help. While I have some responsibilities of a webmaster, my technical abilities are very limited.
View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:
View Replies !
Send Email - Page Where You Enter An Email Address And Click Send.
I am interested in creating an "email -this" type ability for a website. I am sure most people have seen an "email -this story" type link that is standard on most news web sites. You click such a link and then it takes you to a page where you enter an email address and click send. The link for the story and the title are not editable. Does anyone know where I can find example code of how to do this with php, and any explanation of how this works.
View Replies !
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.
View Replies !
Send A Java Variable To Php
I have a form where people can insert text. The form tag is like this: <form name="forname" action="mycode.php" method="post" onsubmit="return submitForm();"> The submitform function is the following: function submitForm() { updateRTEs(); rte1 = htmlDecode(document.RTEDemo.rte1.value); alert(rte1); } It now alerts back what you enter, that's working. But what i now want to do is put it in a database (using php). So i need to send the rte1 variable to php. How can i do this best? I don't mind needing redirection or something.
View Replies !
Send Variable Via POST
I'm trying to detect weather a variable was received via POST or GET. If the method was GET, then to automatically redirect to the POST equivalent. <?php ifset($_GET["s"]){ header("Location: http://www.example.com/"); ... set POST=$_GET["s"]; ... } ?>
View Replies !
I Want To Pass Variable Through A URL To Send Mail
I am trying to use the PHP mailto() function to send email to my inbox, but I want to do it without the use of a form. I want the variables to be passed through a URL, for example: http://.../mailer.php/?mailto=test@test.com&subject=testsubject&message=my message here, and let it have special characters and whatnot... is that possible? I want that to grab the mailto, subject, and message variables from the URL and use it with the code to send me the mail.
View Replies !
Send Variable To Java Applet
I want to send a PHP variable to a Java applet, is it possible to use io to do this? I've had a look around and I can't seem to find any information about how to do it, any help or directions to useful websites.
View Replies !
Send Var To A Page With Frames
I am trying to pass a var to a frame page with a page.When the page opens the $job_id var is not passed to the frame page within. Is the a way I can pass the $job_id var to the jobdetails frame within the main page.
View Replies !
Variables Not Send To Next Page
I have a problem while building an intranet site for my work. When I try to send an variable called id to the next page as in : page.php?id=2 (where 2 is extracted from the database and placed in a while. When I click the link the id is shown in the address bar, but the page isn't getting it. Anyone know how to fix this or what the problem is? I'm runing Apache 1.3.33, PHP 5.0.5 and MySQL 5.0.15 with PHPMyAdmin (which is working properly) on a Windows 2003 Server.
View Replies !
PHP Send Page/information
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name.
View Replies !
Send This Page Script
I want to add a 'Send this page to a friend' script to many pages on my site. I'm after a script which can automatically insert the current page URL in to the email that's sent. ie. I do not want a standard visit www.servername.com generic message and URL. Likewise, I don't want to manually customise the script on every page for every URL. The URL needs to be custom for every page. Presumably a PHP script can insert the current URL.
View Replies !
Do You Have To Send Headers Again On A Cached Page
I've got some dynamic pages on my site, so i've set php up to cache them in the normal way to speed up delivery. but i was just wondering... do you have to include the headers again when it reads the cached page, or will the original headers become part of the cached page?
View Replies !
Send Contents Of Page In Email
is there not an easy way to simply send the contents of a page in the body of an email? i.e. i have a report.php that pulls from a mysql db. i need to be able to send the displayed file right in the body of the email. can anyone help with this?
View Replies !
Send Email As Html Page
i need to be able to send an email back to a person once they have completed a form in the exact format of how they filled it in. ie, as a html page with all the text they entered in the text boxes and selected checkboxes, radio buttons, etc. the problem is the page is very big and has many fields so i was thinking, on my action page i just include a template to achieve this.....and in the template can i do this type of thing: <input type="text" name="<php echo $txtAString ?> " size="12"> //which is the name of the text box on the entry form on the previous page ...will that get the text out of the previous page and put it in with the included template?
View Replies !
Send The Header To The Client Only At The End Of The Page?
a quick question. is it possible to send the header to the client only at the end of the page? I mean when the build of the page by the PHP server is finished. This is because I want to redirect the user to a error.php page each time an error occurs. But when doing that, I get an error saying that the header has already been sent.
View Replies !
Send Users To Thankyou Page
I have a form that when properly filled out I would like to send the visitor to a new page. Not an include but a new page that thanks them for filling out the form and then redirects them to the site. I have found that goto is not included in PHP. Most examples I have found have many lines of code and seem so complicated. Is there a way to have this done simply?
View Replies !
PHP Send Information/page To Email
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name. Code:
View Replies !
Curl :: Send XML To A HTTPS Web Page
I'm using PHP to send XML to a HTTPS web page. Everything works fine but can someone help me to remove what I presume is the Curl transfer stats. In the middle of the web page I get the following: % Total % Received % Xferd Average Speed Time etc etc $ch=curl_init($url); curl_setopt($ch,CURLOPT_VERBOSE,0); curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,1); curl_setopt($ch,CURLOPT_POST,0); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_NOPROGRESS,0); curl_setopt($ch,CURLOPT_HTTPDHEADER,$request_post); curl_setopt($ch,CURLOPT_POSTFIELDS,"xmlstream=".$request_xml); $request_result=curl_exec($ch);
View Replies !
Send A Page To The User's Printer
A little more detail: I want the user to be able to press a form submit button and for a script to fetch member information for multiple members from the database and send the information to the printer to be printed so that each member has its own printed page. Does that make sense? I know I could do this by listing all the member details on one page complete with page breaks and getting the admins to print the page, but would prefer to just send the data to the printer. I've tried researching on the net, but haven't come across a solution yet, which probably means I can't do it, but thought I would ask anyway.
View Replies !
Form Without Having To Send The Page Using Post Or Get
What I want to achieve is that when you type in one textbox it appears in the other textbox live without having to send the page using post or get. Code: <form id="form1" name="form1" method="post" action=""> <label> <input name="input" type="text" id="input" /> </label> <p> </p> <p> <label> <input name="output" type="text" id="output" /> </label> </p> </form> how do i make it so that if you type in input, it automatically displays in output?
View Replies !
Send Data To A New Page From Submit
I just posted a question to the Javascript area, but was advised to check this forum for PHP... I have no clue where to start as I do not know any PHP (I have seen it, but have never programmed with it). Basically what I want to do is have 3 select lists, where the user selects their birthdate (one select list for day, one for month and one for year), then they click on the submit button, which needs to take them to the relevant page for their star sign. Below is the javascript post I made that has the javascript code to make a javascript pop-up telling the user whattheir star sign is. Code:
View Replies !
Tool To Send A Complete Page
I know how to use mail() function and it work fine with me but I am wondering if there is a tool or a way to just pass the the desired page to send to mail address with all its content (graphics+HTML+PHP).
View Replies !
Pass The Variable From 1st Page And Read It With Other Name On 2nd Page
I am new to this and learning slowly, but I was hoping someone could give me some quick advice on how to create a variable on one page and have it passed to another to be read as an ID for a mySQL database. I want to pass the variable "varRevID" from one page and have it read as "reviews_id" on the other. My database is pulling from just the first record and I would liek to designate from the pointing page which record to pull from.
View Replies !
Send Data To Print One Page At A Time
I currently have a script together that will display one record per page and allow the user to manually click through pages to view the next record. How can I translate this to printing the data? I want to be able to print the data one page at a time, but only send one print job to do this? I have never done this before, but would imagine it is possible....
View Replies !
How To Send The User To The Page Is Using The Header() Function.
I am writing a page with sessions. At the start of every page I check to make sure that the user actually has a session by checking for some SESSION variables. On one of my pages I have a form that is to add guests for an event. I have no idea how many guests a particular member is giong to bring and the number of guests is not limited. So to save myself time I wrote a form that will allow you to add one guest and then hit add guest. This will save that guest to the guest table in my MySQL database but then I want to reload the page to have them add another guest. The only problem I am having is that the only way I know how to send the user to the page is using the header() function. This is not working because I have already output data. Is there a better way to do this so that I can one form and not have to have a form input for guests up to 20?
View Replies !
Send File & Return To Previous Page
The following script sends a file to a given email along with a message. I am posting the file to the script as a query string, eg. I link to script like this: <a href="php/sendfile.php?remote=sendfile/abc.pdf">receive pdf</a> My question: How can I return to the original page (the page which links to the script) instead of returning to the script after the file has been sent successfully? Could header( "Location: be used in combination with javascript:history.go(-1) ? If so where would it be placed in the script? Code:
View Replies !
Confirm Page - Send POST Vars On?
I am attempting to change around a payment system, which books users into an event. The user is asked for their details in a form, which is checked for valid data and then passed to a confirm page. The confirm page then passes all data to a payment gateway using a POST form. If payment is approved, the gateway sends a (hidden) GET url to the server confirming the order. The order is sent in this url. However, the new system is passing much more information to the payment gateway, which will not handle the amount of data to send in a GET back to my server. Code:
View Replies !
Send A User To A Page Opened By The Secure Site
I want to send a user to a page opened by the secure site that will ask them for their credit card number (I will then store the number temporarily in the database). What must I do that brings the page into "secure" mode where the lock is displayed at the bottom and the user feels "secure" in giving their credit card number. I can pull the same page up on either site as they point to the same directory. How can I block pulling up pages that I want to be "secure" on the unsecure address?
View Replies !
Send An Html Page To People On A Mailing List.
I am wanting to be able to send an html page to people on a mailing list. I have set it up so it sends $mailing_template which sends an html page. Only, when it reaches the inbox it shows as straight html (un parsed) and not as the page. How can I set it to send it as HTML and not straight HTML code please?
View Replies !
How Can I Send Lots Of Data To A Printer Without Displaying It On The Page
I have a list of clients (about 50,000) that is about 500 pages long. To show this, I have a webpage that lists all the clients and pages them in increments of 100 clients per page. I'd like to be able to print (to a phyiscal printer) the entire list of clients, but the problem is, I don't know how to do it without displaying all 50,000 records on the screen at the same time. This creates a serious memory problem when PHP tries to parse and display all of them at once. Is there a way to somehow run the query and parse the results into a printer spool (like print preview) via PHP headers or something instead of displaying the output to the browser?
View Replies !
Question About Using "global" On One Page Then Using The Variable On Another Page
I am taking over an exisitng app. I have the following function on one page: function check($v) { global $user; return $user->validate($v[1], $v[0]); } And it reference $user on the next page. Register_globals are set on the existing server but I am moving to a new server where it is not. The code of the next page is lilke: session_register('user'); $user=$_SESSION['user']; I also want to turn it around so it's: $_SESSION['user'] = $user; But that fails - $user is empty. By the way, $user is an object. Any ideas to how to make sure: $_SESSION['user'] = $user;
View Replies !
|