Hi guys and girls.
First post on here.
Im not new to coding. Can code more than sufficiently in SQL, SAS, VB and Pascal (many years ago).
I have a basic form created where someone is required to enter a stock/share code into it.
I want to take this answer and add that to a website URL.
For example someone types share code SOL, i want that to feed into the website's URL and when the answer is submitted the formaction is then the modified URL containing the give share code of SOL.
So the original site is say... www.sharetracker.co.za/quote/
What I want to do is when someone enters SOL in the form, the formaction URL should read www.sharetracker.co.za/quote/SOL
But for the life of me I cannot reference the answer given in the form into the formaction URL.
Read up on php stuff and echo and the $ used to reference answers but I am lost when it comes to HTML and php coding rules.
Dont laugh here is what I tried.
$Cname = $_POST["Code"];
<form action=""http://www.sharenet.co.za/quote/" method="post">
<p style="color:rgb(0,0,0)">Stock of Interest (Supply share code): <input type="text" name="Code" ></p><br>
<input type="submit" formtarget="_blank" value="Submit" echo formaction="http://www.sharenet.co.za/quote/$code.">
See the red parts where I tried to echo and reference.
Any help would be greatly appreciated