thomas_xyz
Members-
Posts
22 -
Joined
-
Last visited
thomas_xyz's Achievements
Newbie (1/7)
1
Reputation
-
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
never mind i fixed itit's the little "\" got in the way after the request.php all i have to do is remove the forward slash just keep the url to thanks a lot for the help everyone! -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
-
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
-
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
that's for google analytics -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
yuphttp://test.dhamilaw.com/?phone=2125551212&code=abc123 -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
it didn't report any errors -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
sorry i'm still very new at this -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
oh ok thanks again! where am i suppose to put those strings? -
can't send html link with php value from isset echo to next page
thomas_xyz replied to thomas_xyz's topic in PHP
thanks! but here's the other problem. when the second page load, all the graphics, divs, and alignments are missing.. i don't get it -
i'm trying to send information to the following page but can't seem to do so. this might be a html problem i build an if (isset($_REQUEST[""])) to have one side link and another form. problem is that for the image link i set up, i can't send value to the following page <?phpif (isset ($_REQUEST['code']))$code=$_REQUEST['code'];$phone=$_REQUEST['phone'];?> <html><head><title></title></head><body> <?php if (isset($_REQUEST['code'])) echo "</br> <a href=\"request.php\?code&&phone"><img src=\"../images/button1.png\" onmouseover=\"this.src=\'../images/button1-hover.png\'\" onmouseout=\"this.src=\'../images/button1.png\'\"/></a>"; else echo "form"?> </body></html> I thought all i have to do is add ?code&&phone to the <a href> tag.. what am i doing wrong Please help. Thank you
-
well.. you see.. i've also attached another php with a mail() so everything they put in, it will get email to me once they hit submit. the phone number will be given to the sales people. so if i put that in the index, all potential clients have to do is fill out one form to complete the transaction. existing clients will fill out the first form then enter another form to make an appointment
-
just to avoid starting another topic,let just say i want to add an extra text input for those without $code how will i do so? i mean i would want it to only appear to those that enters the site without $code i've tried adding <?php if($code='') echo ' <input type="text" class="inputbg" name="Tel" id="Tel" onfocus="if (this.value == \'Your Phone Number\') {this.value = '';}" onblur="if (this.value == '') {this.value = \'Your Phone Number\';}" value="Your Phone Number" />'?> but that doesn't seem to work
-
all is working now. Thanks alot!!
-
index.php <?phpif (isset ($_REQUEST['Code']));$Code=$_REQUEST['Code'];?><html><head><title></title></head><body><form action="<?php if (isset($_REQUEST['Code'])) echo 'request.php'; else echo 'thankyou.php'; ?>" method="post"><input type="text" class="inputbg" name="FullName" id="FullName" onfocus="if (this.value == 'Your Name') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Name';}" value="Your Na<input type="text" class="inputbg" name="Email" id="Email" onfocus="if (this.value == 'Your Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Your Email';}" value="Your Email" /> <input type="hidden" name="Code" value="<?php echo $_REQUEST['Code'];?>" /><input type="submit" class="submit" name="submit" value="<?php if (isset($_REQUEST['Code'])) echo 'More Info'; else echo 'Continue';?>" /> </form></body></html> Correct?thankyou.php <?php $FullName=$_REQUEST['FullName']; $Code=$_REQUEST['Code'];$Email=$_REQUEST['Email'];$Phone=$_REQUEST['Phone'];$BestTime=$_REQUEST['BestTime'];$theDate = isset($_REQUEST["date5"]) ? $_REQUEST["date5"] : "";$theDate = date('F-j-Y', strtotime($theDate));?><html><head><title></title></head><body> <?phpif (isset ($_REQUEST['Code'])) echo'<h5>Your Code is: <?=$Code;?>. </h5> <h5> The phone number we had on file is <?=$Phone;?></h5> <h5> You have scheduled a phone call on <?=$theDate;?> ,<?=$BestTime;?> -EST.</h5> </p><p style="color:#ffffff;"> <u> *Selected appointment will adjust accordingly to Eastern Standard Time (-EST).</u></p>';else'An email with a Code will be email to you shortly.'?> </body></html> Correct? btw thank you so much for the help. i'm still very new at this
-
am i suppose to do this with the <input type="hidden" name="Code" value="<?php if isset($_REQUEST['code'];?>">?