answersLogoWhite

0

Passing details to a same page using PHP?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

PHP is server side producing a webpage that is served to your browser.

In order to pass details to a php script you will need to send then via a form.

This can be done via a standard form with method="post" or method="get"

the variables are read by php as $_GET['var_name'] or $_POST['var_name'] with var_name being the name of the INPUT on the form.

If you omit the action (action="page2.php") then the form will post to itself (no matter what you call it) and not specifically page2.php

If you want to pass values but not refresh the page then lookup 'ajax'. Its a method of posting forms using javascript which will then wait for the result and deal with the text response. eg. OK or ERROR:email not valid

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Passing details to a same page using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you create a picture watermark or a text watermark on the same page?

You can do it by passing through the printer twice, just be sure to place the two watermarks on non confilicting parts of the page


Why using standard measurements is useful?

So everybody can be 'on the same page' .


How do you put detail under your question?

Unlike other question & answer sites, WikiAnswers does not have a function to put details about your question on the same page as your question appears. You can, however, add exposition and details in the Discussion area associated with every question on the site, and this is where it is recommended that such appear. WikiAnswers chose long ago to keep the question and answer page as clean as possible, but the designers knew that some questions need further details. The point here is that others can read the details you leave in the discussion area, and tailor the answer to the question, using those details. The focus remains on the question and the answer only.


What is message passing explain the advantages of message passing?

message passing is the way of exchanging information between systems or individuals,at d same time.advantage is that we can interact by getting all the necessary details


How will you find a persons details using his mobile phone number in hyderabad?

me too....searchin for the same>>>


How do you find 181-16 using mental math?

197


Can you print 2 ID's at the same time using multiplier scanners?

You can print 2 ID's at the same time as long as the software you are using allows it. If there is a function that shows two ID's on the same page, then you can print it. Otherwise, you cannot.


How is using a ladder diagram different from using a factor tree?

It's not really. The process is essentially the same. It's just a matter of where on the page you write the numbers.


How Can you get face-book fans?

Tell Your Freinds To Like The Page, Then Tell Them To Keep Passing It On. The Other Way Is To Pay and Get Your Page Advertised.!:)


Solve the equations using vocabulary words not in meadow er?

Ballhawk it is a vocabulary word on the same page that you got this question from


Is passing an array to a function exactly the same as passing a pointer to the first element?

Yes it is


How are details connected?

they are connected by the same expectation of the other details (I guessed)