Post a Form from a variable
Hello All,
Here is what I want to do.
I know that it is all wrong (because it doesnt work) butI think it will give you an idea as to where I am going with this.
I just don't know enough php to get it right. As you can tell I am on page 20 of "The Book of PHP"
<?php
$a=" pd_info=6036866441078262BAAEBFF88D2B6C8F6FAA187CC9
4651CF6FAEEDE81E1538AF/";
$b=" pd_info=2A43F8ADFB949F5B6483F84DF24831F6A6E899FF61
15CC998938DF5E4C73646F/";
$c=" pd_info=7BEB91582B70C17367B6878252B05A1751913A6CD3
10B3EF002AD45D63CE9759/";
?>
Send Once
Every Two Weeks
Once A Month
These are the working links that I want to put to work in a drop box list:
Does this make any sense at all?
Hopefully I know just enough PHP to get my point accross to you.
can this be done?
Any help would be AWESOME!!
NYColt
shanda posted this at 03:03 — 17th February 2003.
They have: 105 posts
Joined: Jan 2002
I "think" I follow you.
I would probably try to do it by sending the form to a site which automatically redirects to the link you're interested in. It's really the only solution I can think of.
======================
hack.php contains:
<?
Header("Location:http://auth.paysystems.com/sale.asp?$length");
?>
CPRhosting.com - CPR Hosting...Giving life to the web
Custom-made Hosting Plans starting at $2
samsm posted this at 17:35 — 19th February 2003.
They have: 28 posts
Joined: Feb 2003
Taking this part in issolation, I think this represents one misunderstanding. $a, $b, etc, would suggest that you are trying to use php variables as options in the select.
However, you are outside of
<?php
?>
Try this:
Once A Month
NYColt posted this at 17:43 — 19th February 2003.
They have: 42 posts
Joined: Dec 2002
Thanks,
Actually that is exactly what I wound up doing and it worked great.
As I said in my post I am VERY new to Php and not real clear on the correct syntax.
Someone in another forum gave me the same heads up as you and that worked. Again thanks for the look and see!
NYColt
mairving posted this at 18:17 — 19th February 2003.
They have: 2,256 posts
Joined: Feb 2001
A couple of other things. I am not sure about the variables;
$a=" pd_info=7BEB91582B70C17367B6878252B05A1751913A6CD3
10B3EF002AD45D63CE9759/";
For one, why are these variables so long. Also, you should avoid characters like / at the end since it will be viewed as a directory. It is also not advisable to have spaces in your url.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
samsm posted this at 18:37 — 19th February 2003.
They have: 28 posts
Joined: Feb 2003
That's what I thought too initially but it looks like he's marrying his script with an existing ASP script... the long, awkward urls are evidently necessary for the asp script.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.