CodeChargeMVP
Posts: 473
|
| Posted: 07/16/2010, 3:11 AM |
|
Hello,
I´m developing a .php page forgot your password, i´ve used the search builder so in the php code,
on the function show, after the condition when the form is submitted i´ll write there all the necesarry
code by retrieving the current user password via the submitted email, but obviously
by doing this i´ve to get first the email submitted by the user,
I know by theory than when you submitted a form to a php script you can retrieve the value
by the arrays $HTTP_POST_VARS or $_POST, but i don´t know why i ´m not doing this working
Any suggestion will be helpful.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/16/2010, 4:26 AM |
|
I´ve find some related threads, kind of old, but maybe still work out,
¿does anybody knows if the way than the links speaks about still standing?
http://forums.yessoftware.com/posts.php?post_id=55849
http://forums.codecharge.com/posts.php?post_id=66256
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/16/2010, 11:46 AM |
|
the question is,
¿How do i retrieve the value submitted on a text box on a form in the .php page?
Thank you very much in advance.
Quote CodeChargeMVP:
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
datadoit
|
| Posted: 07/16/2010, 12:49 PM |
|
Use the CCGetFromPost() function.
http://docs.codecharge.com/studio40/html/Components/Fun...omPost.html?toc
|
|
|
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/17/2010, 9:39 AM |
|
Hello Datadoit,
Certainly this is the solution,
but i´m doing this:
echo(CCGetFromPost("s_UsuEmail","hello"));
and i´m always retrieving the string value "hello" which means than the function
hasn´t returning any value, maybe it´s because the grid than i´m modifying it´s a search one,
¿do you think trying it on a record grid will fix it?
Thank you very much in advance.
Quote datadoit:
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
melvyn
Posts: 333
|
| Posted: 07/17/2010, 10:55 AM |
|
I guess you haven a html form, and that form ha a definition like
<form action="password.php" method="post">
True? If the methos isn't post you're not sending the var. Be sure to have that in your form.
Then your php to read it:
$email = $_POST ['s_UsuEmail'];
echo $email
Try!
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com |
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/19/2010, 1:23 AM |
|
Hello Melvyin,
I´ve be sure than the method form is "post".
The theory says than that´s is the correct way to receive tha variable value,
but it shows an error message:
"Notice:Undefined Index: s_UsuEmail in c:|..... on line 171"
There´s no misspelled, there´s no wrong selected variable,
somebody suggested using CCGetFromPost function but not work also,
so I still wondering, ¿shall I use a record form instead of a search one?
Thank you very much in advance.
Quote melvyn:
I guess you haven a html form, and that form ha a definition like
<form action="password.php" method="post">
True? If the methos isn't post you're not sending the var. Be sure to have that in your form.
Then your php to read it:
$email = $_POST ['s_UsuEmail'];
echo $email
Try!
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 07/19/2010, 2:49 AM |
|
Hey,
I´ve resolve the issue, it seems there´s another new bug on CodeCharge,
cause the form method is cleary "POST" but if i used the function $_GET or CCGetFromGet
and in the options form is selected remember parameters GET AND POST,
then i get the value as theory says.
I don´t know to explain why if i clearly choose Method form "POST", I should receive
the values using $_GET or CCGetFromget, the only i can suggest is a new CodeCharge bug.
¿Does anybody knows other reason?
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
joetraff
Posts: 2
|
| Posted: 08/17/2010, 8:04 AM |
|
Quote CodeChargeMVP:
It works !!!
Your help is much obliged.
_________________
Thanks |
 |
 |
CodeChargeMVP
Posts: 473
|
| Posted: 09/02/2010, 10:27 AM |
|
Nice than the thread has help you.
Quote joetraff:
Quote CodeChargeMVP:
It works !!!
Your help is much obliged.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|