HTML - Sending A Variable To Another Page Without Forms
Hi,
I have a PHP script I am writing which displays a list of all the news posts I have made on my site and to the right of it has two links, Edit and Delete. The script will iterate through all the news posts I have made and display them down the page from most recent to oldest, it looks like this: The way it works at the moment is that when each headline gets added, the script will set the edit link for that particular post to <a href="EditSelectedPost.php?$i">Edit</a> $i being the ID to that post. I want it so that when I get sent to EditSelectedPost.php I can pluck off the value of $i and use it on that page. I want to be able to do this without using forms or buttons. Can this be done? Any help will be greatly appreciated. Thanks Ashman Similar TutorialsI have run into an issue email html code. It seems that some or all email clients use Quoted-Printable encoding when display messages. Quoted-Printable encoding will change the = the 3d= whick for most tags is not an issue. However, our cart provider uses a form for our add to cart, view cart etc.. and cannot interpret the Quoted-Printable encoding. What happens is the tag in there form ID="cartID" is turned into ID3D="cartID" when displayed in an email client... Which fails on our cart providers server. Any help, ideas or suggestions? I have created some forms and want them to be submitted to an email address, but when I click the submit button it opens my email program instead of submitting. Site: www.dismantledesign.com/website Here is my form code: Code: <form class="form" action="mailto:matthewtyndall@gmail.com" method="POST" enctype="multipart/form-data" name="EmailForm"> <input type="hidden" name="action" value="verify"><table> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Name:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64609" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64610" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Phone:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64611" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">City:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64613" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Subject:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <input name="control64614" type="text" value="" size="20"/> </td></tr> <tr><td style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Message:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left"> <textarea name="control64615" rows="7" cols="35"></textarea> </td></tr> <tr><td valign=top><font size="2" FACE="Verdana" color="#000000">Verification No.:<small><span style="color:#E00000;" title="Required field">*</span></small></font></td> <td align="left" valign=top><input name="txtNumber" type="text" id="txtNumber" value="" size="10"></td></tr> <tr><td align=right><a title="Don't know why you have to enter this verification number? Click here!" href="http://www.123contactform.com/faq.html"><img border="0" src="http://www.123contactform.com/img/help_icon.gif" alt="contact form faq"></a></td> <td align="left"><img src="http://www.123contactform.com/random.php"></td> </tr> <tr><td></td><td align="left"><input type="submit" value="Send email"/></td></tr> </table> </form> Hey all, I have two forms on my page (shown below in order of appearance). The 2nd form works and redirects you to the page "change-password.php" as it should, but the 1st form does NOT work correctly - it redirects to "change-password.php" too. I don't know what I'm doing wrong, the form action clearly states "uploadconfig.php" but it still tries to send the information to "change-password.php" instead. Thanks in advance. Code: <form action="uploadconfig.php" method="post" enctype="multipart/form-data" name="frm_upload" id="frm_upload"> <table border="0" cellspacing="0" cellpadding="0" id="tbl_upload"> <tr> <th align="right" scope="row"><span class="style8"> <label for="frmname">Song Title: </label> </span></th> <td><input type="text" name="frmname" id="frmname" class="frmfld" /></td> </tr> <tr> <th align="right" scope="row"><span class="style8"> <label for="price">Price: </label> </span></th> <td><input type="text" name="price" id="price" class="price" /> (i.e. - $20)</td> </tr> <tr> <th align="right" scope="row"><span class="style8"> <label for="frmfile"> File: </label> </span></th> <td><input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" /><input name="frmfile" type="file" id="frmfile" size="30" /></td> </tr> <tr> <th scope="row"> </th> <td> <label for="btn" id="sbm"> <input type="submit" name="btn" id="btn" value="Upload" /> </label> </td> </tr> </table> </form> Code: <form action='change-password.php' method=post><input type=hidden name=todo value=change-password><table border='1' bordercolor="#FF0000" cellspacing='0' cellpadding='0' align=center> <tr bgcolor='#CCCCCC' ><td colspan='2' align='center'><font face='Calibri' size='3' align='center'><b>Change Your Password</b> </font></td> </tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>Username</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='text' class='bginput' name='username' ></font></td></tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>New Password</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='password' class='bginput' name='newpassword' ></font></td></tr> <tr bgcolor='#f1f1f1' > <td ><div align="center"><font color="#000000" face='Calibri' size='3' align='right'>Confirm Password</font></div></td> <td align='center'><font face='Calibri' size='3' > <input type ='password' class='bginput' name='confirmnewpassword' ></font></td></tr> <tr bgcolor='#f1f1f1' ><td colspan=2 align=center><input type=submit value='Change Password'> <input type=reset value=Reset></font></td></tr></table></form> Hello, On one of my pages I have 2 forms and only one of them seems to work. The other one (which I have on all 600 pages of my website as it is part of a template I use) does not work on this page where I already have another form. There seems to be a conflict. Here is the code first form (working): <form name=ftInCmForm> <center> <table border="1" cellpadding="0" cellspacing="0"> <tr> <td> <table border="0" cellpadding="3" cellspacing="0" bgcolor="#C0C0C0"> <tr> <td>Convert to centimeters</td> <td><INPUT type=radio value=0 name=choice onClick="killChoice(this.form)" checked ; tabindex="1"><font size="3">(i.e. 5' 3" to 160 cm)</font></td> </tr> <tr> <td>Convert to feet and inches</td> <td><INPUT type=radio value=1 name=choice onClick="killChoice(this.form)" ; tabindex="2"><font size="3">(i.e. 160 cm to 5' 3" </font></td> </tr> <tr> <td rowspan="2" valign="middle">enter length</td> <td><input type=text name=ft size=5 onClick="form.ft.select()" ; style="font-family: Georgia" tabindex="3"> ft</td> </tr> <tr> <td><input type=text name=inCm size=5 onClick="form.inCm.select()" ; style="font-family: Georgia" tabindex="4"> in/cm</td> </tr> <tr> <td></td> <td><INPUT onClick="ftInCm(this.form)" type=button value="convert" ; tabindex="5"></td> </tr> <tr> <td></td> <td><input name=answer size=40 value="The answer will appear here..." style="background-color: #C0C0C0; font-family: Georgia" tabindex="6" ></td> </tr> <tr> <td></td> <td><INPUT type=reset value=reset onClick="form.ft.disabled=false" tabindex="7" ;></td> </tr> </table> </td> </tr> </table> </center> </div> <br> <div align="center"> <center> <table border="1" cellpadding="0" cellspacing="0"> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#C0C0C0"> <tr> <td align="center"> Solution</td> </tr> <tr> <td><textarea rows="3" name="solution" cols="68" style="background-color: #C0C0C0; font-family: Georgia"> A more comprehensive solution will appear here...</textarea></td> </tr> </table> </td> </tr> </table> And here is the code for the form which is working on all but 1 page (the page with the above form on it). This is a Google site search form: <form method="get" action="http://www.google.com/search" target="_blank"> <div style="border:1px solid black;padding:4px;width:14em;" align="center"> <table border="0" cellpadding="0" align="center"> <tr><td> <input type="text" name="q" size="25" maxlength="255" value="" /> <input type="submit" value="Google Search" /></td></tr> <tr><td align="center" style="font-size:75%"> <input type="checkbox" name="sitesearch" value="www.thetallestman.com" checked /> only search TheTallestMan.com<br /> </td></tr></table> </div> </form> I have looked and looked, but have no idea where the conflict lies. Any help would be very much appreciated. Kind regards, The Tallest Man I'm new to forms and am trying to learn how to make a multiple page one. What I've made so far is very basic, but I figure I shouldn't make a pretty and complex one until I master the simple. I've made three separate pages: page a has the first part of the form and when you click 'continue' it should save the information and move you onto page b where you fill in another form. Then you move onto page c where the information you entered is displayed for you to review, then you press send. That's when it's sent to my e-mail. There are two problems with my code: when you click 'continue' on page A it automatically sends the info to my e-mail and I don't want it to. I want it to go to page b. It also displays the information entered on page a, but also shows a bunch of the code that should be hidden. I don't know why. And it's driving me nuts. I'd appreciate any help! Here's the code: <html> <head> <title>Sample Multiple Page Form</title> </head> <body bgcolor="white" text="#000000" link="#0000CC" vlink="#0000CC" alink="#0000CC" marginwidth=0 marginheight=15 topmargin=15 leftmargin=0> <form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST"> <input type="hidden" name="sendtoemail" value="contact@mywebsite.com"> <input type=hidden name="next_page" value="Multiple_Page_b"> <input type=hidden name="required" value="name:Name Required,email:e-Mail Address Required"> <input type=hidden name="current_page" value="Multiple_Page_a"> <input type=hidden name="form" value="2"> <input type=hidden name="start" value="1"> <center> <table width=450 cellpadding=4> <tr> <td colspan=2> <font size=2 face="arial" color=red> </td> </tr> <tr><td><font face="arial" size=2> Your Name: </td><td><input type=text name="name" value="" size=30> </td></tr> <tr><td><font face="arial" size=2> Email Address:</td><td><input type=text name="email" value="" size=30></td></tr> <tr><td colspan=2><br><input type="submit" name="next" value="Continue >>"></td></tr> </table> </form> </body> </html> And here's the message displayed when clicking continue: Thank you for completing our form. The following info was sent to contact@mywebsite.com: Field Value next_page Multiple_Page_b required name:Name Required,email:e-Mail Address Required current_page Multiple_Page_a form 2 start 1 name Jess email contact@myemail.com next Continue >> Hello. I'm trying to make a form on my myspace page that is like a mailing list sign up. I know how to do a standard form, but what I want to do is have some code that automatically extracts the person's profile ID from the page source and sends it in the form (hidden). Is this possible with HTML, or would it require scripting and hence not be useable on myspace? We're having difficulties dealing with two forms on one html search results page. We want the following to happen: 1) "next" and "previous" links to appear when the search returns more results than the limit set in the code. 2) the user to be able to click on a link/radio button which would allow them to view complete result data on another page. The code for goal 1 seems to need a "method = get" capability, while the second goal needs "method = post" to pass information on to the next page. We thought that the best way to do this would be to have two separate forms on the one html page. However, we can't seem to get either form to work in its entirety. Here's the code for our form with the "next" and "previous" links: Code: <form name = "form2" id="form2" method="get" action="<?php echo $_SERVER['PHP_SELF']?>"> When there is only this form on the page, the next/previous links work fine. It's when we try to incorporate other buttons (such as a submit button) and another form that things get messy. The same is true for the other form... it works fine by itself, but it's the combination that throws it off. Goal 2 form: Code: <form name = $formNum id = $formNum method=post action=seach_match_result.php target='_blank'> (This form has a submit button at the end.) These forms are not nested, but totally separated in the code. Are we on the right track, or is there a better way to accomplish this? Thanks! AM how to make contact page with contact detail mean forms detail like this name: email: address: country: Comments : and submit how to use submit coding i do not know much html tell me about submit option I want to add a total of 10 forms to the same page but can only get the "Double Combo" box vehicle "Make and Modle" to work in "Ad 1". (see page link below) What am I missing or what do I need to do? Please view script form here >> http://www.netrixllc.net/clpublisher/create-ads.html I would appreciate any help... Thank you~ My page contains several iframes and each contains a form. In IE (but not in FF), when I submit a form, the action page is shown in a new window. How can I make it so the action page is instead loaded inside the iframe? Hi! I would like to know how do I pass a variable in my URL to the next page. HTML Code: For example, my URL is: http://www.mysite.com?source=google I'm using this form code to go to the next page: <form action="http://www.mysite.com/next-page.html" method="get" name="form"> <input type="text" name="zipcode" maxlength="5" id="zipcode" /> <br /> <input type="submit" id="button" value="Go"/> </form> So the next page URL will be: http://www.mysite.com/next-page.html?zipcode=11111 I want that the variable "google" will be also in this URL: http://www.mysite.com/next-page.html?zipcode=11111&source=google How I do that? Thanks, Steve Hi. This is something I have pondered on for a very long time and wish to know how to resolve. I have no idea if it is possible but I think I have seen it done before. I need a piece of code for a frame that will automatically readjust itself to the page that is targeted in the frame, but will only go so far as the parameters I set it to. To me, it sounds like a rather complicated code and I'm really not sure whether it is possible, but if it is, it would be extremely useful for forum pages that are set to be inside a webpage. What I want to achieve with this, is to have the frame to be able to extend itself inside the page, without putting a scrollbar on the actual frame. The page I have isn't actually structured with frames, so I would like to keep it that way. I have no idea if this IS possible but I would like to know. Thanks, KGB. Hi, am trying to show a page in a HTML <iframe> but before loading that page I want to set a variable value. I tried following: <iframe src="slgrid/ccustomer.php?id=" <? echo $cat; ?> "width="100%" height="100""></iframe> but can not get the value of id using $_GET['id'] Any other ideas are also welcome please. I am a little new in PHP and HTML. Any help in this regard will be appreciated. Thanks and regards, So, still rather new to writing HTML. I'm looking to put either a text field or drop down box onto the page dependent on a previously defined variable. How do I go about doing that? here i have a static web-page... i want to include a mail function into it.... Like someone enter to the site and type something to the textbox or something like that and hit the submit button den his message will be send to my mail id... my 1st question is that is it possible to make thik happen in to a static webpage? if yes den wat i will do..? plz help me with the code..... or not den wat i have to do to implement this mail function..... I have an online form done in html. I need the person to be able to submit the form first and then be able to print the form after they have sent it. How can this be done? Thanks Hi I am learning XHTML and was wondering if you could help me to give me the tag on how to send a form by email in 'clean' text (no word1+word2+word3... format). I have tried several things and failed. Thank you in advance if you can help. Hi, its been many years since i've done any website / html work but a friend of mine asked me to help him add a form to his marriage website that basically works as a RSVP option. he wants people to be able to add their name and click if they are going to be attending or not...click submit and have it send it to his e-mail. Making the form was easy (and i won't bore u with the code), the only problem i'm having with is how to make the submit button send an e-mail. I did some looking and it seems like its going to require the user to have sending e-mails enabled thru their browser? does anyone know of an easy way to do this (preferably one that doesn't require the user to have any sort of brain) ? Simple is better and all i need is a quick fix thx for any help bigunn Really dumb question... How do you get the forms to send to your e-mail account? I need a simple, easy-to-set-up-but-relieable way to do it. Hi. I created html email, have all images on the server. But how do I attach my html to email so that it shows in the body of email and not as an attachement?? Thanks!!!! |