PHP and Forms

Could someone point out where the action item is in the form below?

<form   name="express" method="post" onsubmit="return check(this);" enctype="multipart/form-data">
	<input name="mode" value="fast" type="hidden" />
	<input name="barno2" value="" type="hidden" />
	<input name="pt" value="{PT}" type="hidden" />
	<input type="image" src="{TPLVAR_WEB_PREFIX}images/paypalexpress.png" alt="Express Checkout with PayPal" name="Paynow2" border="0" id="Paynow2"  />
</form>

Open in new window



Thanks

stevaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ikrommCommented:
there is none. that means that the form will post to the same page.
0
stevaAuthor Commented:
Ok.  Could someone briefly outline the PHP code that will sense, then,  that this page is being called by a form submission, rather than for the first time?

Thanks,
0
mpickreignCommented:
at the top of the page put..

<? if (isset($_POST)) {
          //Actions to perform if page was submitted.
}?>



If the $_POST variable exists then the page was called via a form submission.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Ray PaseurCommented:
You can see what the form submits with something like this..

<?php
error_reporting(E_ALL);
echo "<pre>";
var_dump($_POST);
echo "</pre>";

// THE REST OF THE SCRIPT GOES HERE
0
Marco GasiFreelancerCommented:
Probably, the action is set dinamically within the javascript check() function. Try to see there and you'll finad something like this

function check(formName){
  document.formName.action = 'path_to_the_page_to_post_to';
}

Cheers
0
stevaAuthor Commented:
Thanks to everyone for submitting.  The first two answers helped me the most. I already knew how to see what gets submitted, but thanks anyway.  And there was nothing in the check function that set the action. But thanks anyway.
0
Marco GasiFreelancerCommented:
Thank you for points, but I don't deserve them. You have been very nice, but you have to award points only to that answer that really help you to solve your problem and not to all who simply tried to help you. I think you should request attention to a moderator and inform you that you wish change your point's assignement.

Regards
0
stevaAuthor Commented:
Yes, I know, but this is the first time I've posted to the PHP group and just wanted to show my gratitude to everyone for responding.  I've posted about 500 questions to other areas of ExpertsExchange that I usually work in and I'm a lot tougher over there,  where I know the people better.  

I'll be tougher next time.  Plus I only  gave you 10% of the points.  Hopefully the other people won't mind too much.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.