Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
chris (Guest)
chris (Guest)
Hi
 
I'd like to be able to use and access the form fields on user_profile.php in order to add my own functionality. When I try to access (for example) the email text input field using the code echo $_POST['email']; in the part of the code that gets called once the form has been submitted, I get an error along the lines of Notice: Undefined index: email in C:\wamp\www\viart\blocks\block_user_profile.php on line 672. I've tried playing with the get_param() function too, but this just does nothing (no error either).
 
Any suggestions on how I can access predefined and custom fields (even when I tried hard coding a field in as a test I still got the undefined index error)? The usual method of using $_POST[] doesn't work.
 
Regards.
 
chris (Guest)
chris (Guest)
OK I've worked out that $r->get_value("email") is the way to go about accessing form fields on user_profile.php, but if I wanted to then redirect to any other page (say, basket.php) instead of the default redirect, how would I on basket.php (or whatever) access post variables from that form on the previous page?