Hi all, I have a html based website with several elements in php. I need to return a few values from a html form on the same page, for example: This are the fields the user needs to fill: First Name Last Name Phone Email I need to return them like this and the first & last name I need to combine in to one variable (fullname): <div> hello %fullname%, your phone is: %phone% and your email is %email%</div> Code (markup): I can use php inside the page. Appreciate your help...
in form leave action attrib empty. It will send all the values of form to the same page... Now on top you can use php to get the posted values.e.g if you set method to POST in form you can use $email = $_POST['email'] if you used GET you can use $_GET['email']; you can also use $_REQUEST['email'] to get values sent via any method
i think he is saying that it's the html file..., so that might not work.., What do you say guys......, because abstractworld is correct in case if the form file is php.., but, as his conversation that is html, That might work if you can run php in html, ----- this is just what i am thinking...