marukochan Posted March 14, 2007 Share Posted March 14, 2007 Please help me! Is my code correct or wrong because the variable id is empty. My code <form action = "admin_editprocess.php?id="<? echo $project_id; ?>"" method="post"> I echo id there is a value there, but when admin_editprocess is called the id is empty. Please help. Thanks Link to comment https://forums.phpfreaks.com/topic/42599-passing-variable-why-is-it-empty/ Share on other sites More sharing options...
kenrbnsn Posted March 14, 2007 Share Posted March 14, 2007 How are you retrieving the value in the script "admin_editprocess.php"? Also, you have two too many double quotes in the "<form>" line. It should be: <form action = "admin_editprocess.php?id=<?php echo $project_id; ?>" method="post"> Ken Link to comment https://forums.phpfreaks.com/topic/42599-passing-variable-why-is-it-empty/#findComment-206733 Share on other sites More sharing options...
brad Posted March 14, 2007 Share Posted March 14, 2007 have you set the variable BEFORE the form is built or after it? <form action="admin_editprocess.php?id=<? echo $project_id; ?>" method="post"> try that. Link to comment https://forums.phpfreaks.com/topic/42599-passing-variable-why-is-it-empty/#findComment-206735 Share on other sites More sharing options...
brad Posted March 14, 2007 Share Posted March 14, 2007 I am too slow. Link to comment https://forums.phpfreaks.com/topic/42599-passing-variable-why-is-it-empty/#findComment-206736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.