Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,255
Total Threads: 81,172
Total Posts: 566,867
There are 57 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming :

Dynamic URL writing using form data on current page in PHP

Thread title: Dynamic URL writing using form data on current page in PHP
Reply    
    Thread tools Search this thread Display Modes  
06-17-2011, 02:42 PM
#1
Suetan is offline Suetan
Status: I'm new around here
Join date: Jun 2011
Location: USA
Expertise: Design, Programming, Hardware
Software:
 
Posts: 1
iTrader: 0 / 0%
 

Suetan is on a distinguished road

  Old  Dynamic URL writing using form data on current page in PHP

Here's my code:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-us">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="Serif WebPlus X4 (12.0.4.031)">
    <title>A Touch of Moore</title>
    <meta name="keywords" content="Massage, Massage Therapy, Swedish massage, Waxing, Hair removal, beauty, salon, spa, day spa, hot stone, pedi, pedicure, manicure, permanent makeup, chemical peel, peels, facial, body treatment, Norwich, NY, New York, Chenango County, Massage, Massage Therapy, Swedish massage, Waxing, Hair removal, beauty, salon, spa, day spa, hot stone, pedi, pedicure, manicure, permanent makeup, chemical peel, peels, facial, body treatment, Norwich, NY, New York, Chenango County">
    <meta name="description" content="Norwich, NY Massage Therapy, Swedish Massage, ">
    <meta name="author" content="Dinnett Moore">
    <meta http-equiv="Content-Language" content="en-us">
    <link rel="icon" href="favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <script type="text/javascript" src="_wp_scripts/jsNavBarFuncs.js"></script>
    <script type="text/javascript" src="_wp_scripts/global_navtree.js"></script>
    <script type="text/javascript" src="_wp_scripts/wp_navbar_flash.js"></script>
    <style type="text/css">
    <!--
        body {margin: 0px; padding: 0px;}
        a:link {color: #000080;}
        a:visited {color: #000080;}
        a:hover {color: #000080;}
        a:active {color: #000080;}
        .Normal-P
        {
            margin:0.0px 0.0px 10.0px 0.0px; text-align:left; font-weight:400; 
        }
        .Normal-P0
        {
            margin:7.0px 0.0px 7.0px 0.0px; text-align:left; font-weight:400; 
        }
        .Normal-P1
        {
            margin:7.0px 0.0px 7.0px 0.0px; text-align:left; font-weight:400; 
            text-indent:32.0px; 
        }
        .Normal-P2
        {
            margin:7.0px 0.0px 7.0px 0.0px; text-align:left; font-weight:400; 
            text-indent:33.0px; 
        }
        .Normal-P3
        {
            margin:0.0px 0.0px 0.0px 0.0px; text-align:left; font-weight:400; 
            text-indent:33.0px; 
        }
        .Normal-P4
        {
            margin:0.0px 0.0px 0.0px 0.0px; text-align:left; font-weight:400; 
        }
        .Normal-P5
        {
            margin:0.0px 0.0px 0.0px 53.0px; text-align:left; font-weight:400; 
            text-indent:-20.0px; 
        }
        .Normal-C
        {
            font-family:"Arial", sans-serif; font-weight:700; font-size:20.0px; 
            line-height:1.25em; 
        }
        .Normal-C0
        {
            font-family:"Arial", sans-serif; font-size:16.0px; line-height:1.19em; 
        }
        .Normal-C1
        {
            font-family:"Arial", sans-serif; font-size:18.0px; line-height:1.22em; 
        }
        .Normal-C2
        {
            font-family:"Arial", sans-serif; font-size:13.0px; line-height:1.23em; 
        }
        .Normal-C3
        {
            font-family:"Arial", sans-serif; font-size:15.0px; line-height:1.13em; 
        }
        .Normal-C4
        {
            font-family:"Wingdings", serif; font-size:15.0px; line-height:1.07em; 
        }
        .Normal-C5
        {
            font-family:"Arial", sans-serif; font-size:15.0px; line-height:1.13em; 
            color:#0000ff; text-decoration: underline; 
        }
        .Body-C
        {
            font-family:"Times New Roman", serif; font-size:13.0px; 
            line-height:1.23em; color:#777777; 
        }
        -->
    </style>
    <script type="text/javascript" src="_wp_scripts/jsFlashVer.js"></script>
    <script type="text/javascript" src="_wp_scripts/jspngfix.js"></script>
    <script type="text/javascript"><!--
    var blankSrc = "_wp_scripts/blank.gif";
    --></script>
    </head>
    <body text="#000000" style="background-color:#f3f3e4; text-align:center; height:1000px;">
        <div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:950px;height:1000px;">
        <div style="position:absolute; left:500px; top:68px; width:438px; height:283px;">
            <img src="_wp_generated/wpb07d38a0.png" width="438" height="283" border="0" id="pic_18" name="pic_18" title="" alt="" onload="OnLoadPngFix()"></div>
            <div id="nav_322" style="position:absolute; left:10px; top:350px; width:208px; height:356px; z-index:200;">
                <script type="text/javascript" id="nav_322_script"><!--
                try 
                {
                    var navtree_nav_322 = WpNavBar.getNavTreeTopLevel( global_navtree, {m_sThisPageUrl:'index.html',
                    m_sNavBarTarget:'_self',
                    m_bIncludeAnchors:false,
                    m_bFlash:true,
                    m_bIncludeChildren:true,
                    m_bHideCurrent:false} );
                    if( !navtree_nav_322 ) 
                        throw WpNavBar.getErrorObj( 'Link tree could not be read' );
                    var nav_322 = new wp_navbar_flash("nav_322", navtree_nav_322, {'ExportNoScript':false,m_iWidth:208,
                    m_iHeight:356,'pageCol':'#f3f3e4'}, {'sFlashFile':'_wp_scripts/ArrowPointerStyle1.swf','NHz':0,'NDn':0,'NHzM':0,'NMOff':0,'NEqlSz':true,'NBSpc':50,'NDv':false,'NDvCl':'0x000080','NDvSz':7,'NTm':500,'NFll':true,'NCl':'0xc97d38','NShp':1,'NGdt':4,'NShdw':1,'NHPd':7,'NVPd':7,'NBkCol':'transparent','MBShp':1,'MBGdt':3,'MBFll':true,'MBAnFll':false,'MBCl':'0x000000','MBHvCl':'0x777777','MBCrCl':'0x777777','MBAp':0,'MBHvAp':100,'MBLn':true,'MBLnCl':'0x000080','MBTxCl':'0x000000','MBTxHvCl':'0xffffff','MBTxCrCl':'0xffffff','MBTxFt':3,'MBTxSz':30,'MBTxAl':1,'MBTxBd':false,'MBHPd':5,'MBTPd':5,'MBBPd':5,'SMPd':7,'SMFll':true,'SMCl':'0xeef7f7','SMGdt':4,'SMShp':1,'SMBShp':1,'SMBGdt':3,'SMBFll':true,'SMBAnFll':false,'SMBCl':'0xeef7f7','SMBHvCl':'0x777777','SMBCrCl':'0x777777','SMBAp':0,'SMBHvAp':100,'SMBLn':false,'SMBLnCl':'0x777777','SMBTxCl':'0x777777','SMBTxHvCl':'0xffffff','SMBTxCrCl':'0xffffff','SMBTxFt':0,'SMBTxSz':11,'SMBTxAl':0,'SMBTxBd':false,'SMBHPd':3,'SMBTPd':2,'SMBBPd':2,'AM':true,'AStTyp':5,'AStGlw':'0xffffff'});
                } 
                catch(e)
                {
                    document.write( 'There was an error generating the navbar:<br>' + e.message );
                }
                --></script>
            </div>
            <div id="flashgallery_2" style="position:absolute; left:11px; top:33px; width:478px; height:254px;">
                <script type="text/javascript">
                <!--
                var hasReqestedVersion = DetectFlashVer(8, 0, 0);
                if (hasReqestedVersion)
                {
                    AC_FL_RunContent(
                        "src", "_wp_generated/Full Size Images With Control Bar?flashvar1=7116.xml",
                        "base", "_wp_generated",
                        "play", "true",
                        "loop", "true",
                        "width", "478",
                        "height", "254",
                        "salign", "C",
                        "scale", "ShowAll",
                        "id", "flashgallery_2",
                        "quality", "High",
                        "wmode", "transparent",
                        "name", "flashgallery_2",
                        "type", "application/x-shockwave-flash",
                        'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
                        "pluginspage", "http://www.macromedia.com/go/getflashplayer"
                    );
                }
                else
                {
                    var alternateContent = 'An old version of the Flash plugin was detected. <strong><a href="http://www.macromedia.com/go/getflash/">Please upgrade your Flash plugin.<\/a><\/strong>';
                    document.write(alternateContent);
                }
                -->
                </script>
            </div>
            <div style="position:absolute; left:1px; top:724px; width:221px; height:67px;">
                <a href="http://www.facebook.com/atouchofmoore"  target="_blank"><img src="_wp_generated/wpe74d8bde.png" width="221" height="67" border="0" id="pic_48" name="pic_48" title="" alt="" onload="OnLoadPngFix()"></a></div>
            <div style="position:absolute; left:618px; top:26px; width:49px; height:40px;">
                <a href="http://www.facebook.com/atouchofmoore"  target="_blank"><img src="_wp_generated/wpd187d441.png" width="49" height="40" border="0" id="pic_49" name="pic_49" title="" alt="" onload="OnLoadPngFix()"></a></div>
            <div style="position:absolute; left:691px; top:22px; width:50px; height:49px;">
                <a href="http://twitter.com/#!/Atouchofmoore"  target="_blank"><img src="_wp_generated/wp84e76f31_05.jpg" width="50" height="49" border="0" id="pic_50" name="pic_50" title="" alt=""></a></div>
            <div style="position:absolute; left:764px; top:23px; width:44px; height:43px;">
                <a href="http://www.linkedin.com/in/dinnettmoore"  target="_blank"><img src="_wp_generated/wpd36e6243.png" width="44" height="43" border="0" id="pic_51" name="pic_51" title="" alt="" onload="OnLoadPngFix()"></a></div>
            <div id="txt_78_C01" style="position:absolute; left:252px; top:359px; width:674px; height:419px;">
                <div class="Normal_P">
                    <span class="Normal_C">
<?php
error_reporting
(E_ALL);
$root './';
if (!
defined("in_cert"))
{
    
define("in_cert"true);
}
include(
$root .'includes/functions.php');
$cert_num = array(0,1,2,3,4,5);
$i 0;
?>
        Please select the number of certificates that you would like to have below. Once you select the number that you want, the page will automatically bring you to the next step in the order process.
        <form action="certificate_stage2.php" method="get">
            Number of Desired Gift Certificates:&nbsp;
            <select name="cert_num" onchange='this.form.submit();'>
                <?php while ($i <= 5)
                {
                
?>
                <option value=<?php echo $cert_num[$i]; ?>><?php echo $i?></option>
                <?php $i++;
                } 
?>
            </select>                
            <br />
            <br /><!-- link right back to this page, but change to mode 1 (step 2) -->
            <center>
        </form>
                </span>
            </div>
        </div>
<div style="position:absolute; left:629px; top:760px; width:311px; height:205px;">
    <img src="_wp_generated/wpd4f88c72_05.jpg" width="311" height="205" border="0" id="pic_20" name="pic_20" title="" alt=""></div>
<div style="position:absolute; left:370px; top:767px; width:147px; height:79px;">
    <a href="http://commercechenango.com"  target="_blank"><img src="_wp_generated/wp6db46daa_05.jpg" width="147" height="79" border="0" id="pic_46" name="pic_46" title="" alt=""></a></div>
<div style="position:absolute; left:158px; top:867px; width:259px; height:58px;">
    <a href="http://www.shopnorwichny.com/"  target="_blank"><img src="_wp_generated/wp3c237bdf_05.jpg" width="259" height="58" border="0" id="pic_47" name="pic_47" title="" alt=""></a></div>
</div>
</body
I've been working on this for weeks, and have not been able to get it to submit the dynamic form data. Anyone have any suggestions?

Reply With Quote
Reply    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed