Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 10:11 am EST
Geeklog Forums
Can staticpages pass values to each other?
George
Anonymous
Hello - I am trying to use staticpages to do a form/PHP script operation. The staticpages don't seem to be passing the values from the form on staticpage1, HTML only, which calls staticpage2, PHP execute, in the form action.
Can this be done, or is there a better way to accomplish this goal? I am trying to simply let the user insert and read/display values from a database (not the GL database). Not too experienced with PHP.
Thanks... (GL 1.40sr2)
Can this be done, or is there a better way to accomplish this goal? I am trying to simply let the user insert and read/display values from a database (not the GL database). Not too experienced with PHP.
Thanks... (GL 1.40sr2)
11
10
Quote
George
Anonymous
Hmm.. can you expand a little on that? I examined the $_POST array and it seemed to be empty.
Here's the calling HTML:
<form action ="/staticpages/index.php/findphp" method = "post" >
Enter SSAN:<br>
<input name = "ssan" type = text>
<br>
<input type = submit value = "Find">
</form>
And here's the recieving PHP:
if (!$ssan)
{ echo "Nothing entered!";
//exit;
}
echo $ssan;
Just a simple test to get it going.
Here's the calling HTML:
Text Formatted Code
<form action ="/staticpages/index.php/findphp" method = "post" >
Enter SSAN:<br>
<input name = "ssan" type = text>
<br>
<input type = submit value = "Find">
</form>
And here's the recieving PHP:
Text Formatted Code
if (!$ssan)
{ echo "Nothing entered!";
//exit;
}
echo $ssan;
Just a simple test to get it going.
8
13
Quote
George
Anonymous
That's got it.... Thanks very much!
9
11
Quote
All times are EST. The time is now 10:11 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content